home *** CD-ROM | disk | FTP | other *** search
/ Aminet 2 / Aminet AMIGA CDROM (1994)(Walnut Creek)[Feb 1994][W.O. 44790-1].iso / Aminet / util / gnu / emacs_src.lha / emacs-18.58 / lisp / picture.elc < prev    next >
Emacs Compiled Lisp  |  1992-02-21  |  19.1 KB

open in: MacOS 8.1     |     Win98     |     DOS

view JSON data     |     view as text

This file was processed as: Emacs Compiled Lisp (other/emacsCompiledLisp).
This format is not currently supported by dexvert.

ConfidenceProgramDetectionMatch TypeSupport
1% dexvert Emacs Compiled Lisp (other/emacsCompiledLisp) magic Unsupported
100% file Emacs v18 byte-compiled Lisp data default
99% file data default
100% gt2 Kopftext: '(provide (quote picture)) default (weak)



hex view
+--------+-------------------------+-------------------------+--------+--------+
|00000000| 0a 28 70 72 6f 76 69 64 | 65 20 28 71 75 6f 74 65 |.(provid|e (quote|
|00000010| 20 70 69 63 74 75 72 65 | 29 29 0a 0a 28 64 65 66 | picture|))..(def|
|00000020| 75 6e 20 6d 6f 76 65 2d | 74 6f 2d 63 6f 6c 75 6d |un move-|to-colum|
|00000030| 6e 2d 66 6f 72 63 65 20 | 28 63 6f 6c 75 6d 6e 29 |n-force |(column)|
|00000040| 20 22 5c 0a 4d 6f 76 65 | 20 74 6f 20 63 6f 6c 75 | "\.Move| to colu|
|00000050| 6d 6e 20 43 4f 4c 55 4d | 4e 20 69 6e 20 63 75 72 |mn COLUM|N in cur|
|00000060| 72 65 6e 74 20 6c 69 6e | 65 2e 0a 44 69 66 66 65 |rent lin|e..Diffe|
|00000070| 72 73 20 66 72 6f 6d 20 | 6d 6f 76 65 2d 74 6f 2d |rs from |move-to-|
|00000080| 63 6f 6c 75 6d 6e 20 69 | 6e 20 74 68 61 74 20 69 |column i|n that i|
|00000090| 74 20 63 72 65 61 74 65 | 73 20 6f 72 20 6d 6f 64 |t create|s or mod|
|000000a0| 69 66 69 65 73 20 77 68 | 69 74 65 73 70 61 63 65 |ifies wh|itespace|
|000000b0| 0a 69 66 20 6e 65 63 65 | 73 73 61 72 79 20 74 6f |.if nece|ssary to|
|000000c0| 20 61 74 74 61 69 6e 20 | 65 78 61 63 74 6c 79 20 | attain |exactly |
|000000d0| 74 68 65 20 73 70 65 63 | 69 66 69 65 64 20 63 6f |the spec|ified co|
|000000e0| 6c 75 6d 6e 2e 22 20 28 | 62 79 74 65 2d 63 6f 64 |lumn." (|byte-cod|
|000000f0| 65 20 22 c3 08 21 88 69 | 19 09 08 57 83 11 00 08 |e "..!.i|...W....|
|00000100| 6a 82 2b 00 c4 09 08 5c | 22 85 1b 00 68 c5 55 85 |j.+....\|"...h.U.|
|00000110| 2b 00 c6 1a c7 c8 21 88 | 09 6a 88 c3 08 21 29 29 |+.....!.|.j...!))|
|00000120| 87 22 20 5b 63 6f 6c 75 | 6d 6e 20 63 6f 6c 20 69 |." [colu|mn col i|
|00000130| 6e 64 65 6e 74 2d 74 61 | 62 73 2d 6d 6f 64 65 20 |ndent-ta|bs-mode |
|00000140| 6d 6f 76 65 2d 74 6f 2d | 63 6f 6c 75 6d 6e 20 2f |move-to-|column /|
|00000150| 3d 20 39 20 6e 69 6c 20 | 64 65 6c 65 74 65 2d 63 |= 9 nil |delete-c|
|00000160| 68 61 72 20 2d 31 5d 20 | 35 29 29 0a 0a 28 64 65 |har -1] |5))..(de|
|00000170| 66 75 6e 20 70 69 63 74 | 75 72 65 2d 65 6e 64 2d |fun pict|ure-end-|
|00000180| 6f 66 2d 6c 69 6e 65 20 | 28 26 6f 70 74 69 6f 6e |of-line |(&option|
|00000190| 61 6c 20 61 72 67 29 20 | 22 5c 0a 50 6f 73 69 74 |al arg) |"\.Posit|
|000001a0| 69 6f 6e 20 70 6f 69 6e | 74 20 61 66 74 65 72 20 |ion poin|t after |
|000001b0| 6c 61 73 74 20 6e 6f 6e | 2d 62 6c 61 6e 6b 20 63 |last non|-blank c|
|000001c0| 68 61 72 61 63 74 65 72 | 20 6f 6e 20 63 75 72 72 |haracter| on curr|
|000001d0| 65 6e 74 20 6c 69 6e 65 | 2e 0a 57 69 74 68 20 41 |ent line|..With A|
|000001e0| 52 47 20 6e 6f 74 20 6e | 69 6c 2c 20 6d 6f 76 65 |RG not n|il, move|
|000001f0| 20 66 6f 72 77 61 72 64 | 20 41 52 47 20 2d 20 31 | forward| ARG - 1|
|00000200| 20 6c 69 6e 65 73 20 66 | 69 72 73 74 2e 0a 49 66 | lines f|irst..If|
|00000210| 20 73 63 61 6e 20 72 65 | 61 63 68 65 73 20 65 6e | scan re|aches en|
|00000220| 64 20 6f 66 20 62 75 66 | 66 65 72 2c 20 73 74 6f |d of buf|fer, sto|
|00000230| 70 20 74 68 65 72 65 20 | 77 69 74 68 6f 75 74 20 |p there |without |
|00000240| 65 72 72 6f 72 2e 22 20 | 28 69 6e 74 65 72 61 63 |error." |(interac|
|00000250| 74 69 76 65 20 22 50 22 | 29 20 28 62 79 74 65 2d |tive "P"|) (byte-|
|00000260| 63 6f 64 65 20 22 c1 88 | 08 85 0c 00 c2 c3 08 21 |code "..|.......!|
|00000270| 53 21 88 c4 20 88 c5 c6 | 60 c7 20 88 5c 22 87 22 |S!.. ...|`. .\"."|
|00000280| 20 5b 61 72 67 20 6e 69 | 6c 20 66 6f 72 77 61 72 | [arg ni|l forwar|
|00000290| 64 2d 6c 69 6e 65 20 70 | 72 65 66 69 78 2d 6e 75 |d-line p|refix-nu|
|000002a0| 6d 65 72 69 63 2d 76 61 | 6c 75 65 20 62 65 67 69 |meric-va|lue begi|
|000002b0| 6e 6e 69 6e 67 2d 6f 66 | 2d 6c 69 6e 65 20 73 6b |nning-of|-line sk|
|000002c0| 69 70 2d 63 68 61 72 73 | 2d 62 61 63 6b 77 61 72 |ip-chars|-backwar|
|000002d0| 64 20 22 20 09 22 20 65 | 6e 64 2d 6f 66 2d 6c 69 |d " ." e|nd-of-li|
|000002e0| 6e 65 5d 20 38 29 29 0a | 0a 28 64 65 66 75 6e 20 |ne] 8)).|.(defun |
|000002f0| 70 69 63 74 75 72 65 2d | 66 6f 72 77 61 72 64 2d |picture-|forward-|
|00000300| 63 6f 6c 75 6d 6e 20 28 | 61 72 67 29 20 22 5c 0a |column (|arg) "\.|
|00000310| 4d 6f 76 65 20 63 75 72 | 73 6f 72 20 72 69 67 68 |Move cur|sor righ|
|00000320| 74 2c 20 6d 61 6b 69 6e | 67 20 77 68 69 74 65 73 |t, makin|g whites|
|00000330| 70 61 63 65 20 69 66 20 | 6e 65 63 65 73 73 61 72 |pace if |necessar|
|00000340| 79 2e 0a 57 69 74 68 20 | 61 72 67 75 6d 65 6e 74 |y..With |argument|
|00000350| 2c 20 6d 6f 76 65 20 74 | 68 61 74 20 6d 61 6e 79 |, move t|hat many|
|00000360| 20 63 6f 6c 75 6d 6e 73 | 2e 22 20 28 69 6e 74 65 | columns|." (inte|
|00000370| 72 61 63 74 69 76 65 20 | 22 70 22 29 20 28 62 79 |ractive |"p") (by|
|00000380| 74 65 2d 63 6f 64 65 20 | 22 c1 88 c2 69 08 5c 5c |te-code |"...i.\\|
|00000390| 21 87 22 20 5b 61 72 67 | 20 6e 69 6c 20 6d 6f 76 |!." [arg| nil mov|
|000003a0| 65 2d 74 6f 2d 63 6f 6c | 75 6d 6e 2d 66 6f 72 63 |e-to-col|umn-forc|
|000003b0| 65 5d 20 33 29 29 0a 0a | 28 64 65 66 75 6e 20 70 |e] 3))..|(defun p|
|000003c0| 69 63 74 75 72 65 2d 62 | 61 63 6b 77 61 72 64 2d |icture-b|ackward-|
|000003d0| 63 6f 6c 75 6d 6e 20 28 | 61 72 67 29 20 22 5c 0a |column (|arg) "\.|
|000003e0| 4d 6f 76 65 20 63 75 72 | 73 6f 72 20 6c 65 66 74 |Move cur|sor left|
|000003f0| 2c 20 6d 61 6b 69 6e 67 | 20 77 68 69 74 65 73 70 |, making| whitesp|
|00000400| 61 63 65 20 69 66 20 6e | 65 63 65 73 73 61 72 79 |ace if n|ecessary|
|00000410| 2e 0a 57 69 74 68 20 61 | 72 67 75 6d 65 6e 74 2c |..With a|rgument,|
|00000420| 20 6d 6f 76 65 20 74 68 | 61 74 20 6d 61 6e 79 20 | move th|at many |
|00000430| 63 6f 6c 75 6d 6e 73 2e | 22 20 28 69 6e 74 65 72 |columns.|" (inter|
|00000440| 61 63 74 69 76 65 20 22 | 70 22 29 20 28 62 79 74 |active "|p") (byt|
|00000450| 65 2d 63 6f 64 65 20 22 | c1 88 c2 69 08 5a 21 87 |e-code "|...i.Z!.|
|00000460| 22 20 5b 61 72 67 20 6e | 69 6c 20 6d 6f 76 65 2d |" [arg n|il move-|
|00000470| 74 6f 2d 63 6f 6c 75 6d | 6e 2d 66 6f 72 63 65 5d |to-colum|n-force]|
|00000480| 20 33 29 29 0a 0a 28 64 | 65 66 75 6e 20 70 69 63 | 3))..(d|efun pic|
|00000490| 74 75 72 65 2d 6d 6f 76 | 65 2d 64 6f 77 6e 20 28 |ture-mov|e-down (|
|000004a0| 61 72 67 29 20 22 5c 0a | 4d 6f 76 65 20 76 65 72 |arg) "\.|Move ver|
|000004b0| 74 69 63 61 6c 6c 79 20 | 64 6f 77 6e 2c 20 6d 61 |tically |down, ma|
|000004c0| 6b 69 6e 67 20 77 68 69 | 74 65 73 70 61 63 65 20 |king whi|tespace |
|000004d0| 69 66 20 6e 65 63 65 73 | 73 61 72 79 2e 0a 57 69 |if neces|sary..Wi|
|000004e0| 74 68 20 61 72 67 75 6d | 65 6e 74 2c 20 6d 6f 76 |th argum|ent, mov|
|000004f0| 65 20 74 68 61 74 20 6d | 61 6e 79 20 6c 69 6e 65 |e that m|any line|
|00000500| 73 2e 22 20 28 69 6e 74 | 65 72 61 63 74 69 76 65 |s." (int|eractive|
|00000510| 20 22 70 22 29 20 28 62 | 79 74 65 2d 63 6f 64 65 | "p") (b|yte-code|
|00000520| 20 22 c2 88 69 18 c3 09 | 21 88 c4 08 21 29 87 22 | "..i...|!...!)."|
|00000530| 20 5b 63 6f 6c 20 61 72 | 67 20 6e 69 6c 20 70 69 | [col ar|g nil pi|
|00000540| 63 74 75 72 65 2d 6e 65 | 77 6c 69 6e 65 20 6d 6f |cture-ne|wline mo|
|00000550| 76 65 2d 74 6f 2d 63 6f | 6c 75 6d 6e 2d 66 6f 72 |ve-to-co|lumn-for|
|00000560| 63 65 5d 20 33 29 29 0a | 0a 28 64 65 66 63 6f 6e |ce] 3)).|.(defcon|
|00000570| 73 74 20 70 69 63 74 75 | 72 65 2d 76 65 72 74 69 |st pictu|re-verti|
|00000580| 63 61 6c 2d 73 74 65 70 | 20 30 20 22 5c 0a 41 6d |cal-step| 0 "\.Am|
|00000590| 6f 75 6e 74 20 74 6f 20 | 6d 6f 76 65 20 76 65 72 |ount to |move ver|
|000005a0| 74 69 63 61 6c 6c 79 20 | 61 66 74 65 72 20 74 65 |tically |after te|
|000005b0| 78 74 20 63 68 61 72 61 | 63 74 65 72 20 69 6e 20 |xt chara|cter in |
|000005c0| 50 69 63 74 75 72 65 20 | 6d 6f 64 65 2e 22 29 0a |Picture |mode.").|
|000005d0| 0a 28 64 65 66 63 6f 6e | 73 74 20 70 69 63 74 75 |.(defcon|st pictu|
|000005e0| 72 65 2d 68 6f 72 69 7a | 6f 6e 74 61 6c 2d 73 74 |re-horiz|ontal-st|
|000005f0| 65 70 20 31 20 22 5c 0a | 41 6d 6f 75 6e 74 20 74 |ep 1 "\.|Amount t|
|00000600| 6f 20 6d 6f 76 65 20 68 | 6f 72 69 7a 6f 6e 74 61 |o move h|orizonta|
|00000610| 6c 6c 79 20 61 66 74 65 | 72 20 74 65 78 74 20 63 |lly afte|r text c|
|00000620| 68 61 72 61 63 74 65 72 | 20 69 6e 20 50 69 63 74 |haracter| in Pict|
|00000630| 75 72 65 20 6d 6f 64 65 | 2e 22 29 0a 0a 28 64 65 |ure mode|.")..(de|
|00000640| 66 75 6e 20 70 69 63 74 | 75 72 65 2d 6d 6f 76 65 |fun pict|ure-move|
|00000650| 2d 75 70 20 28 61 72 67 | 29 20 22 5c 0a 4d 6f 76 |-up (arg|) "\.Mov|
|00000660| 65 20 76 65 72 74 69 63 | 61 6c 6c 79 20 75 70 2c |e vertic|ally up,|
|00000670| 20 6d 61 6b 69 6e 67 20 | 77 68 69 74 65 73 70 61 | making |whitespa|
|00000680| 63 65 20 69 66 20 6e 65 | 63 65 73 73 61 72 79 2e |ce if ne|cessary.|
|00000690| 0a 57 69 74 68 20 61 72 | 67 75 6d 65 6e 74 2c 20 |.With ar|gument, |
|000006a0| 6d 6f 76 65 20 74 68 61 | 74 20 6d 61 6e 79 20 6c |move tha|t many l|
|000006b0| 69 6e 65 73 2e 22 20 28 | 69 6e 74 65 72 61 63 74 |ines." (|interact|
|000006c0| 69 76 65 20 22 70 22 29 | 20 28 62 79 74 65 2d 63 |ive "p")| (byte-c|
|000006d0| 6f 64 65 20 22 c1 88 c2 | 08 5b 21 87 22 20 5b 61 |ode "...|.[!." [a|
|000006e0| 72 67 20 6e 69 6c 20 70 | 69 63 74 75 72 65 2d 6d |rg nil p|icture-m|
|000006f0| 6f 76 65 2d 64 6f 77 6e | 5d 20 32 29 29 0a 0a 28 |ove-down|] 2))..(|
|00000700| 64 65 66 75 6e 20 70 69 | 63 74 75 72 65 2d 6d 6f |defun pi|cture-mo|
|00000710| 76 65 6d 65 6e 74 2d 72 | 69 67 68 74 20 6e 69 6c |vement-r|ight nil|
|00000720| 20 22 5c 0a 4d 6f 76 65 | 20 72 69 67 68 74 20 61 | "\.Move| right a|
|00000730| 66 74 65 72 20 73 65 6c | 66 2d 69 6e 73 65 72 74 |fter sel|f-insert|
|00000740| 69 6e 67 20 63 68 61 72 | 61 63 74 65 72 20 69 6e |ing char|acter in|
|00000750| 20 50 69 63 74 75 72 65 | 20 6d 6f 64 65 2e 22 20 | Picture| mode." |
|00000760| 28 69 6e 74 65 72 61 63 | 74 69 76 65 29 20 28 62 |(interac|tive) (b|
|00000770| 79 74 65 2d 63 6f 64 65 | 20 22 c0 88 c1 c2 c3 5c |yte-code| ".....\|
|00000780| 22 87 22 20 5b 6e 69 6c | 20 70 69 63 74 75 72 65 |"." [nil| picture|
|00000790| 2d 73 65 74 2d 6d 6f 74 | 69 6f 6e 20 30 20 31 5d |-set-mot|ion 0 1]|
|000007a0| 20 33 29 29 0a 0a 28 64 | 65 66 75 6e 20 70 69 63 | 3))..(d|efun pic|
|000007b0| 74 75 72 65 2d 6d 6f 76 | 65 6d 65 6e 74 2d 6c 65 |ture-mov|ement-le|
|000007c0| 66 74 20 6e 69 6c 20 22 | 5c 0a 4d 6f 76 65 20 6c |ft nil "|\.Move l|
|000007d0| 65 66 74 20 61 66 74 65 | 72 20 73 65 6c 66 2d 69 |eft afte|r self-i|
|000007e0| 6e 73 65 72 74 69 6e 67 | 20 63 68 61 72 61 63 74 |nserting| charact|
|000007f0| 65 72 20 69 6e 20 50 69 | 63 74 75 72 65 20 6d 6f |er in Pi|cture mo|
|00000800| 64 65 2e 22 20 28 69 6e | 74 65 72 61 63 74 69 76 |de." (in|teractiv|
|00000810| 65 29 20 28 62 79 74 65 | 2d 63 6f 64 65 20 22 c0 |e) (byte|-code ".|
|00000820| 88 c1 c2 c3 5c 22 87 22 | 20 5b 6e 69 6c 20 70 69 |....\"."| [nil pi|
|00000830| 63 74 75 72 65 2d 73 65 | 74 2d 6d 6f 74 69 6f 6e |cture-se|t-motion|
|00000840| 20 30 20 2d 31 5d 20 33 | 29 29 0a 0a 28 64 65 66 | 0 -1] 3|))..(def|
|00000850| 75 6e 20 70 69 63 74 75 | 72 65 2d 6d 6f 76 65 6d |un pictu|re-movem|
|00000860| 65 6e 74 2d 75 70 20 6e | 69 6c 20 22 5c 0a 4d 6f |ent-up n|il "\.Mo|
|00000870| 76 65 20 75 70 20 61 66 | 74 65 72 20 73 65 6c 66 |ve up af|ter self|
|00000880| 2d 69 6e 73 65 72 74 69 | 6e 67 20 63 68 61 72 61 |-inserti|ng chara|
|00000890| 63 74 65 72 20 69 6e 20 | 50 69 63 74 75 72 65 20 |cter in |Picture |
|000008a0| 6d 6f 64 65 2e 22 20 28 | 69 6e 74 65 72 61 63 74 |mode." (|interact|
|000008b0| 69 76 65 29 20 28 62 79 | 74 65 2d 63 6f 64 65 20 |ive) (by|te-code |
|000008c0| 22 c0 88 c1 c2 c3 5c 22 | 87 22 20 5b 6e 69 6c 20 |".....\"|." [nil |
|000008d0| 70 69 63 74 75 72 65 2d | 73 65 74 2d 6d 6f 74 69 |picture-|set-moti|
|000008e0| 6f 6e 20 2d 31 20 30 5d | 20 33 29 29 0a 0a 28 64 |on -1 0]| 3))..(d|
|000008f0| 65 66 75 6e 20 70 69 63 | 74 75 72 65 2d 6d 6f 76 |efun pic|ture-mov|
|00000900| 65 6d 65 6e 74 2d 64 6f | 77 6e 20 6e 69 6c 20 22 |ement-do|wn nil "|
|00000910| 5c 0a 4d 6f 76 65 20 64 | 6f 77 6e 20 61 66 74 65 |\.Move d|own afte|
|00000920| 72 20 73 65 6c 66 2d 69 | 6e 73 65 72 74 69 6e 67 |r self-i|nserting|
|00000930| 20 63 68 61 72 61 63 74 | 65 72 20 69 6e 20 50 69 | charact|er in Pi|
|00000940| 63 74 75 72 65 20 6d 6f | 64 65 2e 22 20 28 69 6e |cture mo|de." (in|
|00000950| 74 65 72 61 63 74 69 76 | 65 29 20 28 62 79 74 65 |teractiv|e) (byte|
|00000960| 2d 63 6f 64 65 20 22 c0 | 88 c1 c2 c3 5c 22 87 22 |-code ".|....\"."|
|00000970| 20 5b 6e 69 6c 20 70 69 | 63 74 75 72 65 2d 73 65 | [nil pi|cture-se|
|00000980| 74 2d 6d 6f 74 69 6f 6e | 20 31 20 30 5d 20 33 29 |t-motion| 1 0] 3)|
|00000990| 29 0a 0a 28 64 65 66 75 | 6e 20 70 69 63 74 75 72 |)..(defu|n pictur|
|000009a0| 65 2d 6d 6f 76 65 6d 65 | 6e 74 2d 6e 77 20 6e 69 |e-moveme|nt-nw ni|
|000009b0| 6c 20 22 5c 0a 4d 6f 76 | 65 20 75 70 20 61 6e 64 |l "\.Mov|e up and|
|000009c0| 20 6c 65 66 74 20 61 66 | 74 65 72 20 73 65 6c 66 | left af|ter self|
|000009d0| 2d 69 6e 73 65 72 74 69 | 6e 67 20 63 68 61 72 61 |-inserti|ng chara|
|000009e0| 63 74 65 72 20 69 6e 20 | 50 69 63 74 75 72 65 20 |cter in |Picture |
|000009f0| 6d 6f 64 65 2e 22 20 28 | 69 6e 74 65 72 61 63 74 |mode." (|interact|
|00000a00| 69 76 65 29 20 28 62 79 | 74 65 2d 63 6f 64 65 20 |ive) (by|te-code |
|00000a10| 22 c0 88 c1 c2 c2 5c 22 | 87 22 20 5b 6e 69 6c 20 |".....\"|." [nil |
|00000a20| 70 69 63 74 75 72 65 2d | 73 65 74 2d 6d 6f 74 69 |picture-|set-moti|
|00000a30| 6f 6e 20 2d 31 5d 20 33 | 29 29 0a 0a 28 64 65 66 |on -1] 3|))..(def|
|00000a40| 75 6e 20 70 69 63 74 75 | 72 65 2d 6d 6f 76 65 6d |un pictu|re-movem|
|00000a50| 65 6e 74 2d 6e 65 20 6e | 69 6c 20 22 5c 0a 4d 6f |ent-ne n|il "\.Mo|
|00000a60| 76 65 20 75 70 20 61 6e | 64 20 72 69 67 68 74 20 |ve up an|d right |
|00000a70| 61 66 74 65 72 20 73 65 | 6c 66 2d 69 6e 73 65 72 |after se|lf-inser|
|00000a80| 74 69 6e 67 20 63 68 61 | 72 61 63 74 65 72 20 69 |ting cha|racter i|
|00000a90| 6e 20 50 69 63 74 75 72 | 65 20 6d 6f 64 65 2e 22 |n Pictur|e mode."|
|00000aa0| 20 28 69 6e 74 65 72 61 | 63 74 69 76 65 29 20 28 | (intera|ctive) (|
|00000ab0| 62 79 74 65 2d 63 6f 64 | 65 20 22 c0 88 c1 c2 c3 |byte-cod|e ".....|
|00000ac0| 5c 22 87 22 20 5b 6e 69 | 6c 20 70 69 63 74 75 72 |\"." [ni|l pictur|
|00000ad0| 65 2d 73 65 74 2d 6d 6f | 74 69 6f 6e 20 2d 31 20 |e-set-mo|tion -1 |
|00000ae0| 31 5d 20 33 29 29 0a 0a | 28 64 65 66 75 6e 20 70 |1] 3))..|(defun p|
|00000af0| 69 63 74 75 72 65 2d 6d | 6f 76 65 6d 65 6e 74 2d |icture-m|ovement-|
|00000b00| 73 77 20 6e 69 6c 20 22 | 5c 0a 4d 6f 76 65 20 64 |sw nil "|\.Move d|
|00000b10| 6f 77 6e 20 61 6e 64 20 | 6c 65 66 74 20 61 66 74 |own and |left aft|
|00000b20| 65 72 20 73 65 6c 66 2d | 69 6e 73 65 72 74 69 6e |er self-|insertin|
|00000b30| 67 20 63 68 61 72 61 63 | 74 65 72 20 69 6e 20 50 |g charac|ter in P|
|00000b40| 69 63 74 75 72 65 20 6d | 6f 64 65 2e 22 20 28 69 |icture m|ode." (i|
|00000b50| 6e 74 65 72 61 63 74 69 | 76 65 29 20 28 62 79 74 |nteracti|ve) (byt|
|00000b60| 65 2d 63 6f 64 65 20 22 | c0 88 c1 c2 c3 5c 22 87 |e-code "|.....\".|
|00000b70| 22 20 5b 6e 69 6c 20 70 | 69 63 74 75 72 65 2d 73 |" [nil p|icture-s|
|00000b80| 65 74 2d 6d 6f 74 69 6f | 6e 20 31 20 2d 31 5d 20 |et-motio|n 1 -1] |
|00000b90| 33 29 29 0a 0a 28 64 65 | 66 75 6e 20 70 69 63 74 |3))..(de|fun pict|
|00000ba0| 75 72 65 2d 6d 6f 76 65 | 6d 65 6e 74 2d 73 65 20 |ure-move|ment-se |
|00000bb0| 6e 69 6c 20 22 5c 0a 4d | 6f 76 65 20 64 6f 77 6e |nil "\.M|ove down|
|00000bc0| 20 61 6e 64 20 72 69 67 | 68 74 20 61 66 74 65 72 | and rig|ht after|
|00000bd0| 20 73 65 6c 66 2d 69 6e | 73 65 72 74 69 6e 67 20 | self-in|serting |
|00000be0| 63 68 61 72 61 63 74 65 | 72 20 69 6e 20 50 69 63 |characte|r in Pic|
|00000bf0| 74 75 72 65 20 6d 6f 64 | 65 2e 22 20 28 69 6e 74 |ture mod|e." (int|
|00000c00| 65 72 61 63 74 69 76 65 | 29 20 28 62 79 74 65 2d |eractive|) (byte-|
|00000c10| 63 6f 64 65 20 22 c0 88 | c1 c2 c2 5c 22 87 22 20 |code "..|...\"." |
|00000c20| 5b 6e 69 6c 20 70 69 63 | 74 75 72 65 2d 73 65 74 |[nil pic|ture-set|
|00000c30| 2d 6d 6f 74 69 6f 6e 20 | 31 5d 20 33 29 29 0a 0a |-motion |1] 3))..|
|00000c40| 28 64 65 66 75 6e 20 70 | 69 63 74 75 72 65 2d 73 |(defun p|icture-s|
|00000c50| 65 74 2d 6d 6f 74 69 6f | 6e 20 28 76 65 72 74 20 |et-motio|n (vert |
|00000c60| 68 6f 72 69 7a 29 20 22 | 5c 0a 53 65 74 20 56 45 |horiz) "|\.Set VE|
|00000c70| 52 54 49 43 41 4c 20 61 | 6e 64 20 48 4f 52 49 5a |RTICAL a|nd HORIZ|
|00000c80| 4f 4e 54 41 4c 20 69 6e | 63 72 65 6d 65 6e 74 73 |ONTAL in|crements|
|00000c90| 20 66 6f 72 20 6d 6f 76 | 65 6d 65 6e 74 20 69 6e | for mov|ement in|
|00000ca0| 20 50 69 63 74 75 72 65 | 20 6d 6f 64 65 2e 0a 54 | Picture| mode..T|
|00000cb0| 68 65 20 6d 6f 64 65 20 | 6c 69 6e 65 20 69 73 20 |he mode |line is |
|00000cc0| 75 70 64 61 74 65 64 20 | 74 6f 20 72 65 66 6c 65 |updated |to refle|
|00000cd0| 63 74 20 74 68 65 20 63 | 75 72 72 65 6e 74 20 64 |ct the c|urrent d|
|00000ce0| 69 72 65 63 74 69 6f 6e | 2e 22 20 28 62 79 74 65 |irection|." (byte|
|00000cf0| 2d 63 6f 64 65 20 22 09 | 10 0b 89 12 88 c5 c6 c7 |-code ".|........|
|00000d00| c8 c9 ca 0b cb 5c 22 cc | cd ca 09 cb 5c 22 54 5c |.....\".|....\"T\|
|00000d10| 22 23 ce 5c 22 40 5c 22 | 89 14 88 cf d0 20 21 88 |"#.\"@\"|..... !.|
|00000d20| d1 d2 21 87 22 20 5b 70 | 69 63 74 75 72 65 2d 76 |..!." [p|icture-v|
|00000d30| 65 72 74 69 63 61 6c 2d | 73 74 65 70 20 76 65 72 |ertical-|step ver|
|00000d40| 74 20 70 69 63 74 75 72 | 65 2d 68 6f 72 69 7a 6f |t pictur|e-horizo|
|00000d50| 6e 74 61 6c 2d 73 74 65 | 70 20 68 6f 72 69 7a 20 |ntal-ste|p horiz |
|00000d60| 6d 6f 64 65 2d 6e 61 6d | 65 20 66 6f 72 6d 61 74 |mode-nam|e format|
|00000d70| 20 22 50 69 63 74 75 72 | 65 3a 25 73 22 20 6e 74 | "Pictur|e:%s" nt|
|00000d80| 68 63 64 72 20 2b 20 31 | 20 25 20 32 20 2a 20 33 |hcdr + 1| % 2 * 3|
|00000d90| 20 28 6e 77 20 75 70 20 | 6e 65 20 6c 65 66 74 20 | (nw up |ne left |
|00000da0| 6e 6f 6e 65 20 72 69 67 | 68 74 20 73 77 20 64 6f |none rig|ht sw do|
|00000db0| 77 6e 20 73 65 29 20 73 | 65 74 2d 62 75 66 66 65 |wn se) s|et-buffe|
|00000dc0| 72 2d 6d 6f 64 69 66 69 | 65 64 2d 70 20 62 75 66 |r-modifi|ed-p buf|
|00000dd0| 66 65 72 2d 6d 6f 64 69 | 66 69 65 64 2d 70 20 6d |fer-modi|fied-p m|
|00000de0| 65 73 73 61 67 65 20 22 | 22 5d 20 31 32 29 29 0a |essage "|"] 12)).|
|00000df0| 0a 28 64 65 66 75 6e 20 | 70 69 63 74 75 72 65 2d |.(defun |picture-|
|00000e00| 6d 6f 76 65 20 6e 69 6c | 20 22 5c 0a 4d 6f 76 65 |move nil| "\.Move|
|00000e10| 20 69 6e 20 64 69 72 65 | 63 74 69 6f 6e 20 6f 66 | in dire|ction of|
|00000e20| 20 20 70 69 63 74 75 72 | 65 2d 76 65 72 74 69 63 | pictur|e-vertic|
|00000e30| 61 6c 2d 73 74 65 70 20 | 20 61 6e 64 20 20 70 69 |al-step | and pi|
|00000e40| 63 74 75 72 65 2d 68 6f | 72 69 7a 6f 6e 74 61 6c |cture-ho|rizontal|
|00000e50| 2d 73 74 65 70 2e 22 20 | 28 62 79 74 65 2d 63 6f |-step." |(byte-co|
|00000e60| 64 65 20 22 c2 08 21 88 | c3 09 21 87 22 20 5b 70 |de "..!.|..!." [p|
|00000e70| 69 63 74 75 72 65 2d 76 | 65 72 74 69 63 61 6c 2d |icture-v|ertical-|
|00000e80| 73 74 65 70 20 70 69 63 | 74 75 72 65 2d 68 6f 72 |step pic|ture-hor|
|00000e90| 69 7a 6f 6e 74 61 6c 2d | 73 74 65 70 20 70 69 63 |izontal-|step pic|
|00000ea0| 74 75 72 65 2d 6d 6f 76 | 65 2d 64 6f 77 6e 20 70 |ture-mov|e-down p|
|00000eb0| 69 63 74 75 72 65 2d 66 | 6f 72 77 61 72 64 2d 63 |icture-f|orward-c|
|00000ec0| 6f 6c 75 6d 6e 5d 20 33 | 29 29 0a 0a 28 64 65 66 |olumn] 3|))..(def|
|00000ed0| 75 6e 20 70 69 63 74 75 | 72 65 2d 6d 6f 74 69 6f |un pictu|re-motio|
|00000ee0| 6e 20 28 61 72 67 29 20 | 22 5c 0a 4d 6f 76 65 20 |n (arg) |"\.Move |
|00000ef0| 70 6f 69 6e 74 20 69 6e | 20 64 69 72 65 63 74 69 |point in| directi|
|00000f00| 6f 6e 20 6f 66 20 63 75 | 72 72 65 6e 74 20 70 69 |on of cu|rrent pi|
|00000f10| 63 74 75 72 65 20 6d 6f | 74 69 6f 6e 20 69 6e 20 |cture mo|tion in |
|00000f20| 50 69 63 74 75 72 65 20 | 6d 6f 64 65 2e 0a 57 69 |Picture |mode..Wi|
|00000f30| 74 68 20 41 52 47 20 64 | 6f 20 69 74 20 74 68 61 |th ARG d|o it tha|
|00000f40| 74 20 6d 61 6e 79 20 74 | 69 6d 65 73 2e 20 20 55 |t many t|imes. U|
|00000f50| 73 65 66 75 6c 20 66 6f | 72 20 64 65 6c 69 6e 65 |seful fo|r deline|
|00000f60| 61 74 69 6e 67 20 72 65 | 63 74 61 6e 67 6c 65 73 |ating re|ctangles|
|00000f70| 20 69 6e 0a 63 6f 6e 6a | 75 6e 63 74 69 6f 6e 20 | in.conj|unction |
|00000f80| 77 69 74 68 20 64 69 61 | 67 6f 6e 61 6c 20 70 69 |with dia|gonal pi|
|00000f90| 63 74 75 72 65 20 6d 6f | 74 69 6f 6e 2e 0a 44 6f |cture mo|tion..Do|
|00000fa0| 20 5c 5c 5b 63 6f 6d 6d | 61 6e 64 2d 61 70 72 6f | \\[comm|and-apro|
|00000fb0| 70 6f 73 5d 20 20 70 69 | 63 74 75 72 65 2d 6d 6f |pos] pi|cture-mo|
|00000fc0| 76 65 6d 65 6e 74 20 20 | 74 6f 20 73 65 65 20 63 |vement |to see c|
|00000fd0| 6f 6d 6d 61 6e 64 73 20 | 77 68 69 63 68 20 63 6f |ommands |which co|
|00000fe0| 6e 74 72 6f 6c 20 6d 6f | 74 69 6f 6e 2e 22 20 28 |ntrol mo|tion." (|
|00000ff0| 69 6e 74 65 72 61 63 74 | 69 76 65 20 22 70 22 29 |interact|ive "p")|
|00001000| 20 28 62 79 74 65 2d 63 | 6f 64 65 20 22 c3 88 c4 | (byte-c|ode "...|
|00001010| c5 08 09 5c 22 21 88 c6 | c5 08 0a 5c 22 21 87 22 |...\"!..|...\"!."|
|00001020| 20 5b 61 72 67 20 70 69 | 63 74 75 72 65 2d 76 65 | [arg pi|cture-ve|
|00001030| 72 74 69 63 61 6c 2d 73 | 74 65 70 20 70 69 63 74 |rtical-s|tep pict|
|00001040| 75 72 65 2d 68 6f 72 69 | 7a 6f 6e 74 61 6c 2d 73 |ure-hori|zontal-s|
|00001050| 74 65 70 20 6e 69 6c 20 | 70 69 63 74 75 72 65 2d |tep nil |picture-|
|00001060| 6d 6f 76 65 2d 64 6f 77 | 6e 20 2a 20 70 69 63 74 |move-dow|n * pict|
|00001070| 75 72 65 2d 66 6f 72 77 | 61 72 64 2d 63 6f 6c 75 |ure-forw|ard-colu|
|00001080| 6d 6e 5d 20 36 29 29 0a | 0a 28 64 65 66 75 6e 20 |mn] 6)).|.(defun |
|00001090| 70 69 63 74 75 72 65 2d | 6d 6f 74 69 6f 6e 2d 72 |picture-|motion-r|
|000010a0| 65 76 65 72 73 65 20 28 | 61 72 67 29 20 22 5c 0a |everse (|arg) "\.|
|000010b0| 4d 6f 76 65 20 70 6f 69 | 6e 74 20 69 6e 20 64 69 |Move poi|nt in di|
|000010c0| 72 65 63 74 69 6f 6e 20 | 6f 70 70 6f 73 69 74 65 |rection |opposite|
|000010d0| 20 6f 66 20 63 75 72 72 | 65 6e 74 20 70 69 63 74 | of curr|ent pict|
|000010e0| 75 72 65 20 6d 6f 74 69 | 6f 6e 20 69 6e 20 50 69 |ure moti|on in Pi|
|000010f0| 63 74 75 72 65 20 6d 6f | 64 65 2e 0a 57 69 74 68 |cture mo|de..With|
|00001100| 20 41 52 47 20 64 6f 20 | 69 74 20 74 68 61 74 20 | ARG do |it that |
|00001110| 6d 61 6e 79 20 74 69 6d | 65 73 2e 20 20 55 73 65 |many tim|es. Use|
|00001120| 66 75 6c 20 66 6f 72 20 | 64 65 6c 69 6e 65 61 74 |ful for |delineat|
|00001130| 69 6e 67 20 72 65 63 74 | 61 6e 67 6c 65 73 20 69 |ing rect|angles i|
|00001140| 6e 0a 63 6f 6e 6a 75 6e | 63 74 69 6f 6e 20 77 69 |n.conjun|ction wi|
|00001150| 74 68 20 64 69 61 67 6f | 6e 61 6c 20 70 69 63 74 |th diago|nal pict|
|00001160| 75 72 65 20 6d 6f 74 69 | 6f 6e 2e 0a 44 6f 20 5c |ure moti|on..Do \|
|00001170| 5c 5b 63 6f 6d 6d 61 6e | 64 2d 61 70 72 6f 70 6f |\[comman|d-apropo|
|00001180| 73 5d 20 20 70 69 63 74 | 75 72 65 2d 6d 6f 76 65 |s] pict|ure-move|
|00001190| 6d 65 6e 74 20 20 74 6f | 20 73 65 65 20 63 6f 6d |ment to| see com|
|000011a0| 6d 61 6e 64 73 20 77 68 | 69 63 68 20 63 6f 6e 74 |mands wh|ich cont|
|000011b0| 72 6f 6c 20 6d 6f 74 69 | 6f 6e 2e 22 20 28 69 6e |rol moti|on." (in|
|000011c0| 74 65 72 61 63 74 69 76 | 65 20 22 70 22 29 20 28 |teractiv|e "p") (|
|000011d0| 62 79 74 65 2d 63 6f 64 | 65 20 22 c1 88 c2 08 5b |byte-cod|e "....[|
|000011e0| 21 87 22 20 5b 61 72 67 | 20 6e 69 6c 20 70 69 63 |!." [arg| nil pic|
|000011f0| 74 75 72 65 2d 6d 6f 74 | 69 6f 6e 5d 20 32 29 29 |ture-mot|ion] 2))|
|00001200| 0a 0a 28 64 65 66 75 6e | 20 70 69 63 74 75 72 65 |..(defun| picture|
|00001210| 2d 73 65 6c 66 2d 69 6e | 73 65 72 74 20 28 61 72 |-self-in|sert (ar|
|00001220| 67 29 20 22 5c 0a 49 6e | 73 65 72 74 20 74 68 69 |g) "\.In|sert thi|
|00001230| 73 20 63 68 61 72 61 63 | 74 65 72 20 69 6e 20 70 |s charac|ter in p|
|00001240| 6c 61 63 65 20 6f 66 20 | 63 68 61 72 61 63 74 65 |lace of |characte|
|00001250| 72 20 70 72 65 76 69 6f | 75 73 6c 79 20 61 74 20 |r previo|usly at |
|00001260| 74 68 65 20 63 75 72 73 | 6f 72 2e 0a 54 68 65 20 |the curs|or..The |
|00001270| 63 75 72 73 6f 72 20 74 | 68 65 6e 20 6d 6f 76 65 |cursor t|hen move|
|00001280| 73 20 69 6e 20 74 68 65 | 20 64 69 72 65 63 74 69 |s in the| directi|
|00001290| 6f 6e 20 79 6f 75 20 70 | 72 65 76 69 6f 75 73 6c |on you p|reviousl|
|000012a0| 79 20 73 70 65 63 69 66 | 69 65 64 0a 77 69 74 68 |y specif|ied.with|
|000012b0| 20 74 68 65 20 63 6f 6d | 6d 61 6e 64 73 20 70 69 | the com|mands pi|
|000012c0| 63 74 75 72 65 2d 6d 6f | 76 65 6d 65 6e 74 2d 72 |cture-mo|vement-r|
|000012d0| 69 67 68 74 2c 20 70 69 | 63 74 75 72 65 2d 6d 6f |ight, pi|cture-mo|
|000012e0| 76 65 6d 65 6e 74 2d 75 | 70 2c 20 65 74 63 2e 0a |vement-u|p, etc..|
|000012f0| 44 6f 20 5c 5c 5b 63 6f | 6d 6d 61 6e 64 2d 61 70 |Do \\[co|mmand-ap|
|00001300| 72 6f 70 6f 73 5d 20 20 | 70 69 63 74 75 72 65 2d |ropos] |picture-|
|00001310| 6d 6f 76 65 6d 65 6e 74 | 20 20 74 6f 20 73 65 65 |movement| to see|
|00001320| 20 74 68 6f 73 65 20 63 | 6f 6d 6d 61 6e 64 73 2e | those c|ommands.|
|00001330| 22 20 28 69 6e 74 65 72 | 61 63 74 69 76 65 20 22 |" (inter|active "|
|00001340| 70 22 29 20 28 62 79 74 | 65 2d 63 6f 64 65 20 22 |p") (byt|e-code "|
|00001350| c2 88 08 c3 56 85 23 00 | 08 53 89 10 88 c4 69 54 |....V.#.|.S....iT|
|00001360| 21 88 c5 c6 21 88 09 63 | 88 c7 c6 21 88 c8 20 88 |!...!..c|...!.. .|
|00001370| 82 02 00 87 22 20 5b 61 | 72 67 20 6c 61 73 74 2d |...." [a|rg last-|
|00001380| 69 6e 70 75 74 2d 63 68 | 61 72 20 6e 69 6c 20 30 |input-ch|ar nil 0|
|00001390| 20 6d 6f 76 65 2d 74 6f | 2d 63 6f 6c 75 6d 6e 2d | move-to|-column-|
|000013a0| 66 6f 72 63 65 20 64 65 | 6c 65 74 65 2d 63 68 61 |force de|lete-cha|
|000013b0| 72 20 2d 31 20 66 6f 72 | 77 61 72 64 2d 63 68 61 |r -1 for|ward-cha|
|000013c0| 72 20 70 69 63 74 75 72 | 65 2d 6d 6f 76 65 5d 20 |r pictur|e-move] |
|000013d0| 36 29 29 0a 0a 28 64 65 | 66 75 6e 20 70 69 63 74 |6))..(de|fun pict|
|000013e0| 75 72 65 2d 63 6c 65 61 | 72 2d 63 6f 6c 75 6d 6e |ure-clea|r-column|
|000013f0| 20 28 61 72 67 29 20 22 | 5c 0a 43 6c 65 61 72 20 | (arg) "|\.Clear |
|00001400| 6f 75 74 20 41 52 47 20 | 63 6f 6c 75 6d 6e 73 20 |out ARG |columns |
|00001410| 61 66 74 65 72 20 70 6f | 69 6e 74 20 77 69 74 68 |after po|int with|
|00001420| 6f 75 74 20 6d 6f 76 69 | 6e 67 2e 22 20 28 69 6e |out movi|ng." (in|
|00001430| 74 65 72 61 63 74 69 76 | 65 20 22 70 22 29 20 28 |teractiv|e "p") (|
|00001440| 62 79 74 65 2d 63 6f 64 | 65 20 22 c4 88 60 18 69 |byte-cod|e "..`.i|
|00001450| 19 09 0b 5c 5c 1a c5 0a | 21 88 c6 08 60 5c 22 88 |...\\...|!...`\".|
|00001460| 8a 0a 09 5d 6a 29 2b 87 | 22 20 5b 6f 70 6f 69 6e |...]j)+.|" [opoin|
|00001470| 74 20 6f 72 69 67 69 6e | 61 6c 2d 63 6f 6c 20 74 |t origin|al-col t|
|00001480| 61 72 67 65 74 2d 63 6f | 6c 20 61 72 67 20 6e 69 |arget-co|l arg ni|
|00001490| 6c 20 6d 6f 76 65 2d 74 | 6f 2d 63 6f 6c 75 6d 6e |l move-t|o-column|
|000014a0| 2d 66 6f 72 63 65 20 64 | 65 6c 65 74 65 2d 72 65 |-force d|elete-re|
|000014b0| 67 69 6f 6e 5d 20 34 29 | 29 0a 0a 28 64 65 66 75 |gion] 4)|)..(defu|
|000014c0| 6e 20 70 69 63 74 75 72 | 65 2d 62 61 63 6b 77 61 |n pictur|e-backwa|
|000014d0| 72 64 2d 63 6c 65 61 72 | 2d 63 6f 6c 75 6d 6e 20 |rd-clear|-column |
|000014e0| 28 61 72 67 29 20 22 5c | 0a 43 6c 65 61 72 20 6f |(arg) "\|.Clear o|
|000014f0| 75 74 20 41 52 47 20 63 | 6f 6c 75 6d 6e 73 20 62 |ut ARG c|olumns b|
|00001500| 65 66 6f 72 65 20 70 6f | 69 6e 74 2c 20 6d 6f 76 |efore po|int, mov|
|00001510| 69 6e 67 20 62 61 63 6b | 20 6f 76 65 72 20 74 68 |ing back| over th|
|00001520| 65 6d 2e 22 20 28 69 6e | 74 65 72 61 63 74 69 76 |em." (in|teractiv|
|00001530| 65 20 22 70 22 29 20 28 | 62 79 74 65 2d 63 6f 64 |e "p") (|byte-cod|
|00001540| 65 20 22 c1 88 c2 08 5b | 21 87 22 20 5b 61 72 67 |e "....[|!." [arg|
|00001550| 20 6e 69 6c 20 70 69 63 | 74 75 72 65 2d 63 6c 65 | nil pic|ture-cle|
|00001560| 61 72 2d 63 6f 6c 75 6d | 6e 5d 20 32 29 29 0a 0a |ar-colum|n] 2))..|
|00001570| 28 64 65 66 75 6e 20 70 | 69 63 74 75 72 65 2d 63 |(defun p|icture-c|
|00001580| 6c 65 61 72 2d 6c 69 6e | 65 20 28 61 72 67 29 20 |lear-lin|e (arg) |
|00001590| 22 5c 0a 43 6c 65 61 72 | 20 6f 75 74 20 72 65 73 |"\.Clear| out res|
|000015a0| 74 20 6f 66 20 6c 69 6e | 65 3b 20 69 66 20 61 74 |t of lin|e; if at|
|000015b0| 20 65 6e 64 20 6f 66 20 | 6c 69 6e 65 2c 20 61 64 | end of |line, ad|
|000015c0| 76 61 6e 63 65 20 74 6f | 20 6e 65 78 74 20 6c 69 |vance to| next li|
|000015d0| 6e 65 2e 0a 43 6c 65 61 | 72 65 64 2d 6f 75 74 20 |ne..Clea|red-out |
|000015e0| 6c 69 6e 65 20 74 65 78 | 74 20 67 6f 65 73 20 69 |line tex|t goes i|
|000015f0| 6e 74 6f 20 74 68 65 20 | 6b 69 6c 6c 20 72 69 6e |nto the |kill rin|
|00001600| 67 2c 20 61 73 20 64 6f | 0a 6e 65 77 6c 69 6e 65 |g, as do|.newline|
|00001610| 73 20 74 68 61 74 20 61 | 72 65 20 61 64 76 61 6e |s that a|re advan|
|00001620| 63 65 64 20 6f 76 65 72 | 2e 0a 57 69 74 68 20 61 |ced over|..With a|
|00001630| 72 67 75 6d 65 6e 74 2c | 20 63 6c 65 61 72 20 6f |rgument,| clear o|
|00001640| 75 74 20 28 61 6e 64 20 | 73 61 76 65 20 69 6e 20 |ut (and |save in |
|00001650| 6b 69 6c 6c 20 72 69 6e | 67 29 20 74 68 61 74 20 |kill rin|g) that |
|00001660| 6d 61 6e 79 20 6c 69 6e | 65 73 2e 22 20 28 69 6e |many lin|es." (in|
|00001670| 74 65 72 61 63 74 69 76 | 65 20 22 50 22 29 20 28 |teractiv|e "P") (|
|00001680| 62 79 74 65 2d 63 6f 64 | 65 20 22 c1 88 08 83 21 |byte-cod|e "....!|
|00001690| 00 c2 08 21 89 10 88 c3 | 08 21 88 c4 08 c5 56 83 |...!....|.!....V.|
|000016a0| 1b 00 08 82 1d 00 08 5b | 21 82 39 00 c6 c7 21 83 |.......[|!.9...!.|
|000016b0| 32 00 c8 60 c9 ca 21 88 | 60 5c 22 82 39 00 cb 60 |2..`..!.|`\".9..`|
|000016c0| cc 20 88 60 5c 22 87 22 | 20 5b 61 72 67 20 6e 69 |. .`\"."| [arg ni|
|000016d0| 6c 20 70 72 65 66 69 78 | 2d 6e 75 6d 65 72 69 63 |l prefix|-numeric|
|000016e0| 2d 76 61 6c 75 65 20 6b | 69 6c 6c 2d 6c 69 6e 65 |-value k|ill-line|
|000016f0| 20 6e 65 77 6c 69 6e 65 | 20 30 20 6c 6f 6f 6b 69 | newline| 0 looki|
|00001700| 6e 67 2d 61 74 20 22 5b | 20 09 5d 2a 24 22 20 6b |ng-at "[| .]*$" k|
|00001710| 69 6c 6c 2d 72 69 6e 67 | 2d 73 61 76 65 20 66 6f |ill-ring|-save fo|
|00001720| 72 77 61 72 64 2d 6c 69 | 6e 65 20 31 20 6b 69 6c |rward-li|ne 1 kil|
|00001730| 6c 2d 72 65 67 69 6f 6e | 20 65 6e 64 2d 6f 66 2d |l-region| end-of-|
|00001740| 6c 69 6e 65 5d 20 31 30 | 29 29 0a 0a 28 64 65 66 |line] 10|))..(def|
|00001750| 75 6e 20 70 69 63 74 75 | 72 65 2d 6e 65 77 6c 69 |un pictu|re-newli|
|00001760| 6e 65 20 28 61 72 67 29 | 20 22 5c 0a 4d 6f 76 65 |ne (arg)| "\.Move|
|00001770| 20 74 6f 20 74 68 65 20 | 62 65 67 69 6e 6e 69 6e | to the |beginnin|
|00001780| 67 20 6f 66 20 74 68 65 | 20 66 6f 6c 6c 6f 77 69 |g of the| followi|
|00001790| 6e 67 20 6c 69 6e 65 2e | 0a 57 69 74 68 20 61 72 |ng line.|.With ar|
|000017a0| 67 75 6d 65 6e 74 2c 20 | 6d 6f 76 65 73 20 74 68 |gument, |moves th|
|000017b0| 61 74 20 6d 61 6e 79 20 | 6c 69 6e 65 73 20 28 75 |at many |lines (u|
|000017c0| 70 2c 20 69 66 20 6e 65 | 67 61 74 69 76 65 20 61 |p, if ne|gative a|
|000017d0| 72 67 75 6d 65 6e 74 29 | 3b 0a 61 6c 77 61 79 73 |rgument)|;.always|
|000017e0| 20 6d 6f 76 65 73 20 74 | 6f 20 74 68 65 20 62 65 | moves t|o the be|
|000017f0| 67 69 6e 6e 69 6e 67 20 | 6f 66 20 61 20 6c 69 6e |ginning |of a lin|
|00001800| 65 2e 22 20 28 69 6e 74 | 65 72 61 63 74 69 76 65 |e." (int|eractive|
|00001810| 20 22 70 22 29 20 28 62 | 79 74 65 2d 63 6f 64 65 | "p") (b|yte-code|
|00001820| 20 22 c1 88 08 c2 57 83 | 0e 00 c3 08 21 82 2c 00 | "....W.|....!.,.|
|00001830| 08 c2 56 85 2c 00 c4 20 | 88 6d 83 20 00 c5 20 82 |..V.,.. |.m. .. .|
|00001840| 23 00 c6 c7 21 88 08 53 | 89 10 88 82 0e 00 87 22 |#...!..S|......."|
|00001850| 20 5b 61 72 67 20 6e 69 | 6c 20 30 20 66 6f 72 77 | [arg ni|l 0 forw|
|00001860| 61 72 64 2d 6c 69 6e 65 | 20 65 6e 64 2d 6f 66 2d |ard-line| end-of-|
|00001870| 6c 69 6e 65 20 6e 65 77 | 6c 69 6e 65 20 66 6f 72 |line new|line for|
|00001880| 77 61 72 64 2d 63 68 61 | 72 20 31 5d 20 37 29 29 |ward-cha|r 1] 7))|
|00001890| 0a 0a 28 64 65 66 75 6e | 20 70 69 63 74 75 72 65 |..(defun| picture|
|000018a0| 2d 6f 70 65 6e 2d 6c 69 | 6e 65 20 28 61 72 67 29 |-open-li|ne (arg)|
|000018b0| 20 22 5c 0a 49 6e 73 65 | 72 74 20 61 6e 20 65 6d | "\.Inse|rt an em|
|000018c0| 70 74 79 20 6c 69 6e 65 | 20 61 66 74 65 72 20 74 |pty line| after t|
|000018d0| 68 65 20 63 75 72 72 65 | 6e 74 20 6c 69 6e 65 2e |he curre|nt line.|
|000018e0| 0a 57 69 74 68 20 70 6f | 73 69 74 69 76 65 20 61 |.With po|sitive a|
|000018f0| 72 67 75 6d 65 6e 74 20 | 69 6e 73 65 72 74 20 74 |rgument |insert t|
|00001900| 68 61 74 20 6d 61 6e 79 | 20 6c 69 6e 65 73 2e 22 |hat many| lines."|
|00001910| 20 28 69 6e 74 65 72 61 | 63 74 69 76 65 20 22 70 | (intera|ctive "p|
|00001920| 22 29 20 28 62 79 74 65 | 2d 63 6f 64 65 20 22 c1 |") (byte|-code ".|
|00001930| 88 8a c2 20 88 c3 08 21 | 29 87 22 20 5b 61 72 67 |... ...!|)." [arg|
|00001940| 20 6e 69 6c 20 65 6e 64 | 2d 6f 66 2d 6c 69 6e 65 | nil end|-of-line|
|00001950| 20 6f 70 65 6e 2d 6c 69 | 6e 65 5d 20 33 29 29 0a | open-li|ne] 3)).|
|00001960| 0a 28 64 65 66 75 6e 20 | 70 69 63 74 75 72 65 2d |.(defun |picture-|
|00001970| 64 75 70 6c 69 63 61 74 | 65 2d 6c 69 6e 65 20 6e |duplicat|e-line n|
|00001980| 69 6c 20 22 5c 0a 49 6e | 73 65 72 74 20 61 20 64 |il "\.In|sert a d|
|00001990| 75 70 6c 69 63 61 74 65 | 20 6f 66 20 74 68 65 20 |uplicate| of the |
|000019a0| 63 75 72 72 65 6e 74 20 | 6c 69 6e 65 2c 20 62 65 |current |line, be|
|000019b0| 6c 6f 77 20 69 74 2e 22 | 20 28 69 6e 74 65 72 61 |low it."| (intera|
|000019c0| 63 74 69 76 65 29 20 28 | 62 79 74 65 2d 63 6f 64 |ctive) (|byte-cod|
|000019d0| 65 20 22 c1 88 8a c2 c3 | 20 88 60 c4 c5 21 88 60 |e ".....| .`..!.`|
|000019e0| 5c 22 18 c6 c7 21 88 08 | 63 29 29 87 22 20 5b 63 |\"...!..|c))." [c|
|000019f0| 6f 6e 74 65 6e 74 73 20 | 6e 69 6c 20 62 75 66 66 |ontents |nil buff|
|00001a00| 65 72 2d 73 75 62 73 74 | 72 69 6e 67 20 62 65 67 |er-subst|ring beg|
|00001a10| 69 6e 6e 69 6e 67 2d 6f | 66 2d 6c 69 6e 65 20 70 |inning-o|f-line p|
|00001a20| 69 63 74 75 72 65 2d 6e | 65 77 6c 69 6e 65 20 31 |icture-n|ewline 1|
|00001a30| 20 66 6f 72 77 61 72 64 | 2d 6c 69 6e 65 20 2d 31 | forward|-line -1|
|00001a40| 5d 20 35 29 29 0a 0a 28 | 64 65 66 76 61 72 20 70 |] 5))..(|defvar p|
|00001a50| 69 63 74 75 72 65 2d 74 | 61 62 2d 63 68 61 72 73 |icture-t|ab-chars|
|00001a60| 20 22 21 2d 7e 22 20 22 | 5c 0a 2a 41 20 63 68 61 | "!-~" "|\.*A cha|
|00001a70| 72 61 63 74 65 72 20 73 | 65 74 20 77 68 69 63 68 |racter s|et which|
|00001a80| 20 63 6f 6e 74 72 6f 6c | 73 20 62 65 68 61 76 69 | control|s behavi|
|00001a90| 6f 72 20 6f 66 20 63 6f | 6d 6d 61 6e 64 73 0a 5c |or of co|mmands.\|
|00001aa0| 5c 5b 70 69 63 74 75 72 | 65 2d 73 65 74 2d 74 61 |\[pictur|e-set-ta|
|00001ab0| 62 2d 73 74 6f 70 73 5d | 20 61 6e 64 20 5c 5c 5b |b-stops]| and \\[|
|00001ac0| 70 69 63 74 75 72 65 2d | 74 61 62 2d 73 65 61 72 |picture-|tab-sear|
|00001ad0| 63 68 5d 2e 20 20 49 74 | 20 69 73 20 4e 4f 54 20 |ch]. It| is NOT |
|00001ae0| 61 0a 72 65 67 75 6c 61 | 72 20 65 78 70 72 65 73 |a.regula|r expres|
|00001af0| 73 69 6f 6e 2c 20 61 6e | 79 20 72 65 67 65 78 70 |sion, an|y regexp|
|00001b00| 20 73 70 65 63 69 61 6c | 20 63 68 61 72 61 63 74 | special| charact|
|00001b10| 65 72 73 20 77 69 6c 6c | 20 62 65 20 71 75 6f 74 |ers will| be quot|
|00001b20| 65 64 2e 0a 49 74 20 64 | 65 66 69 6e 65 73 20 61 |ed..It d|efines a|
|00001b30| 20 73 65 74 20 6f 66 20 | 5c 22 69 6e 74 65 72 65 | set of |\"intere|
|00001b40| 73 74 69 6e 67 20 63 68 | 61 72 61 63 74 65 72 73 |sting ch|aracters|
|00001b50| 5c 22 20 74 6f 20 6c 6f | 6f 6b 20 66 6f 72 20 77 |\" to lo|ok for w|
|00001b60| 68 65 6e 20 73 65 74 74 | 69 6e 67 0a 28 6f 72 20 |hen sett|ing.(or |
|00001b70| 73 65 61 72 63 68 69 6e | 67 20 66 6f 72 29 20 74 |searchin|g for) t|
|00001b80| 61 62 20 73 74 6f 70 73 | 2c 20 69 6e 69 74 69 61 |ab stops|, initia|
|00001b90| 6c 6c 79 20 5c 22 21 2d | 7e 5c 22 20 28 61 6c 6c |lly \"!-|~\" (all|
|00001ba0| 20 70 72 69 6e 74 69 6e | 67 20 63 68 61 72 61 63 | printin|g charac|
|00001bb0| 74 65 72 73 29 2e 0a 46 | 6f 72 20 65 78 61 6d 70 |ters)..F|or examp|
|00001bc0| 6c 65 2c 20 73 75 70 70 | 6f 73 65 20 74 68 61 74 |le, supp|ose that|
|00001bd0| 20 79 6f 75 20 61 72 65 | 20 65 64 69 74 69 6e 67 | you are| editing|
|00001be0| 20 61 20 74 61 62 6c 65 | 20 77 68 69 63 68 20 69 | a table| which i|
|00001bf0| 73 20 66 6f 72 6d 61 74 | 74 65 64 20 74 68 75 73 |s format|ted thus|
|00001c00| 3a 0a 7c 20 66 6f 6f 09 | 09 7c 20 62 61 72 20 2b |:.| foo.|.| bar +|
|00001c10| 20 62 61 7a 20 7c 20 32 | 33 20 20 2a 0a 7c 20 62 | baz | 2|3 *.| b|
|00001c20| 75 62 62 6c 65 73 09 7c | 20 61 6e 64 20 2b 20 65 |ubbles.|| and + e|
|00001c30| 74 63 20 7c 20 39 37 20 | 20 2a 0a 61 6e 64 20 74 |tc | 97 | *.and t|
|00001c40| 68 61 74 20 70 69 63 74 | 75 72 65 2d 74 61 62 2d |hat pict|ure-tab-|
|00001c50| 63 68 61 72 73 20 69 73 | 20 5c 22 7c 2b 2a 5c 22 |chars is| \"|+*\"|
|00001c60| 2e 20 20 54 68 65 6e 20 | 69 6e 76 6f 6b 69 6e 67 |. Then |invoking|
|00001c70| 0a 5c 5c 5b 70 69 63 74 | 75 72 65 2d 73 65 74 2d |.\\[pict|ure-set-|
|00001c80| 74 61 62 2d 73 74 6f 70 | 73 5d 20 6f 6e 20 65 69 |tab-stop|s] on ei|
|00001c90| 74 68 65 72 20 6f 66 20 | 74 68 65 20 70 72 65 76 |ther of |the prev|
|00001ca0| 69 6f 75 73 20 6c 69 6e | 65 73 20 77 6f 75 6c 64 |ious lin|es would|
|00001cb0| 20 72 65 73 75 6c 74 0a | 69 6e 20 74 68 65 20 66 | result.|in the f|
|00001cc0| 6f 6c 6c 6f 77 69 6e 67 | 20 74 61 62 20 73 74 6f |ollowing| tab sto|
|00001cd0| 70 73 0a 09 09 3a 20 20 | 20 20 20 3a 20 20 20 20 |ps...: | : |
|00001ce0| 20 3a 20 20 20 20 20 3a | 0a 41 6e 6f 74 68 65 72 | : :|.Another|
|00001cf0| 20 65 78 61 6d 70 6c 65 | 20 2d 20 5c 22 41 2d 5a | example| - \"A-Z|
|00001d00| 61 2d 7a 30 2d 39 5c 22 | 20 77 6f 75 6c 64 20 70 |a-z0-9\"| would p|
|00001d10| 72 6f 64 75 63 65 20 74 | 68 65 20 74 61 62 20 73 |roduce t|he tab s|
|00001d20| 74 6f 70 73 0a 20 20 3a | 09 09 20 20 3a 09 3a 20 |tops. :|.. :.: |
|00001d30| 20 20 20 20 3a 0a 0a 4e | 6f 74 65 20 74 68 61 74 | :..N|ote that|
|00001d40| 20 69 66 20 79 6f 75 20 | 77 61 6e 74 20 74 68 65 | if you |want the|
|00001d50| 20 63 68 61 72 61 63 74 | 65 72 20 60 2d 27 20 74 | charact|er `-' t|
|00001d60| 6f 20 62 65 20 69 6e 20 | 74 68 65 20 73 65 74 2c |o be in |the set,|
|00001d70| 20 69 74 20 6d 75 73 74 | 20 62 65 0a 69 6e 63 6c | it must| be.incl|
|00001d80| 75 64 65 64 20 69 6e 20 | 61 20 72 61 6e 67 65 20 |uded in |a range |
|00001d90| 6f 72 20 65 6c 73 65 20 | 61 70 70 65 61 72 20 69 |or else |appear i|
|00001da0| 6e 20 61 20 63 6f 6e 74 | 65 78 74 20 77 68 65 72 |n a cont|ext wher|
|00001db0| 65 20 69 74 20 63 61 6e | 6e 6f 74 20 62 65 0a 74 |e it can|not be.t|
|00001dc0| 61 6b 65 6e 20 66 6f 72 | 20 69 6e 64 69 63 61 74 |aken for| indicat|
|00001dd0| 69 6e 67 20 61 20 72 61 | 6e 67 65 20 28 65 2e 67 |ing a ra|nge (e.g|
|00001de0| 2e 20 5c 22 2d 41 2d 5a | 5c 22 20 64 65 63 6c 61 |. \"-A-Z|\" decla|
|00001df0| 72 65 73 20 74 68 65 20 | 73 65 74 20 74 6f 20 62 |res the |set to b|
|00001e00| 65 20 74 68 65 0a 6c 65 | 74 74 65 72 73 20 60 41 |e the.le|tters `A|
|00001e10| 27 20 74 68 72 6f 75 67 | 68 20 60 5a 27 20 61 6e |' throug|h `Z' an|
|00001e20| 64 20 74 68 65 20 63 68 | 61 72 61 63 74 65 72 20 |d the ch|aracter |
|00001e30| 60 2d 27 29 2e 20 20 49 | 66 20 79 6f 75 20 77 61 |`-'). I|f you wa|
|00001e40| 6e 74 20 74 68 65 0a 63 | 68 61 72 61 63 74 65 72 |nt the.c|haracter|
|00001e50| 20 60 5c 5c 27 20 69 6e | 20 74 68 65 20 73 65 74 | `\\' in| the set|
|00001e60| 20 69 74 20 6d 75 73 74 | 20 62 65 20 70 72 65 63 | it must| be prec|
|00001e70| 65 64 65 64 20 62 79 20 | 69 74 73 65 6c 66 3a 20 |eded by |itself: |
|00001e80| 5c 22 5c 5c 5c 5c 5c 22 | 2e 0a 0a 54 68 65 20 63 |\"\\\\\"|...The c|
|00001e90| 6f 6d 6d 61 6e 64 20 5c | 5c 5b 70 69 63 74 75 72 |ommand \|\[pictur|
|00001ea0| 65 2d 74 61 62 2d 73 65 | 61 72 63 68 5d 20 69 73 |e-tab-se|arch] is|
|00001eb0| 20 64 65 66 69 6e 65 64 | 20 74 6f 20 6d 6f 76 65 | defined| to move|
|00001ec0| 20 62 65 6e 65 61 74 68 | 20 28 6f 72 20 74 6f 29 | beneath| (or to)|
|00001ed0| 20 61 0a 63 68 61 72 61 | 63 74 65 72 20 62 65 6c | a.chara|cter bel|
|00001ee0| 6f 6e 67 69 6e 67 20 74 | 6f 20 74 68 69 73 20 73 |onging t|o this s|
|00001ef0| 65 74 20 69 6e 64 65 70 | 65 6e 64 65 6e 74 20 6f |et indep|endent o|
|00001f00| 66 20 74 68 65 20 74 61 | 62 20 73 74 6f 70 73 20 |f the ta|b stops |
|00001f10| 6c 69 73 74 2e 22 29 0a | 0a 28 64 65 66 75 6e 20 |list.").|.(defun |
|00001f20| 70 69 63 74 75 72 65 2d | 73 65 74 2d 74 61 62 2d |picture-|set-tab-|
|00001f30| 73 74 6f 70 73 20 28 26 | 6f 70 74 69 6f 6e 61 6c |stops (&|optional|
|00001f40| 20 61 72 67 29 20 22 5c | 0a 53 65 74 20 76 61 6c | arg) "\|.Set val|
|00001f50| 75 65 20 6f 66 20 20 74 | 61 62 2d 73 74 6f 70 2d |ue of t|ab-stop-|
|00001f60| 6c 69 73 74 20 20 61 63 | 63 6f 72 64 69 6e 67 20 |list ac|cording |
|00001f70| 74 6f 20 63 6f 6e 74 65 | 78 74 20 6f 66 20 74 68 |to conte|xt of th|
|00001f80| 69 73 20 6c 69 6e 65 2e | 0a 54 68 69 73 20 63 6f |is line.|.This co|
|00001f90| 6e 74 72 6f 6c 73 20 74 | 68 65 20 62 65 68 61 76 |ntrols t|he behav|
|00001fa0| 69 6f 72 20 6f 66 20 5c | 5c 5b 70 69 63 74 75 72 |ior of \|\[pictur|
|00001fb0| 65 2d 74 61 62 5d 2e 20 | 20 41 20 74 61 62 20 73 |e-tab]. | A tab s|
|00001fc0| 74 6f 70 0a 69 73 20 73 | 65 74 20 61 74 20 65 76 |top.is s|et at ev|
|00001fd0| 65 72 79 20 63 6f 6c 75 | 6d 6e 20 6f 63 63 75 70 |ery colu|mn occup|
|00001fe0| 69 65 64 20 62 79 20 61 | 6e 20 5c 22 69 6e 74 65 |ied by a|n \"inte|
|00001ff0| 72 65 73 74 69 6e 67 20 | 63 68 61 72 61 63 74 65 |resting |characte|
|00002000| 72 5c 22 20 74 68 61 74 | 20 69 73 0a 70 72 65 63 |r\" that| is.prec|
|00002010| 65 64 65 64 20 62 79 20 | 77 68 69 74 65 73 70 61 |eded by |whitespa|
|00002020| 63 65 2e 20 20 49 6e 74 | 65 72 65 73 74 69 6e 67 |ce. Int|eresting|
|00002030| 20 63 68 61 72 61 63 74 | 65 72 73 20 61 72 65 20 | charact|ers are |
|00002040| 64 65 66 69 6e 65 64 20 | 62 79 20 74 68 65 0a 76 |defined |by the.v|
|00002050| 61 72 69 61 62 6c 65 20 | 20 70 69 63 74 75 72 65 |ariable | picture|
|00002060| 2d 74 61 62 2d 63 68 61 | 72 73 2c 20 20 73 65 65 |-tab-cha|rs, see|
|00002070| 20 69 74 73 20 64 6f 63 | 75 6d 65 6e 74 61 74 69 | its doc|umentati|
|00002080| 6f 6e 20 66 6f 72 20 61 | 6e 20 65 78 61 6d 70 6c |on for a|n exampl|
|00002090| 65 0a 6f 66 20 75 73 61 | 67 65 2e 20 20 57 69 74 |e.of usa|ge. Wit|
|000020a0| 68 20 41 52 47 2c 20 6a | 75 73 74 20 28 72 65 29 |h ARG, j|ust (re)|
|000020b0| 73 65 74 20 20 74 61 62 | 2d 73 74 6f 70 2d 6c 69 |set tab|-stop-li|
|000020c0| 73 74 20 20 74 6f 20 69 | 74 73 20 64 65 66 61 75 |st to i|ts defau|
|000020d0| 6c 74 20 76 61 6c 75 65 | 2e 0a 54 68 65 20 74 61 |lt value|..The ta|
|000020e0| 62 20 73 74 6f 70 73 20 | 63 6f 6d 70 75 74 65 64 |b stops |computed|
|000020f0| 20 61 72 65 20 64 69 73 | 70 6c 61 79 65 64 20 69 | are dis|played i|
|00002100| 6e 20 74 68 65 20 6d 69 | 6e 69 62 75 66 66 65 72 |n the mi|nibuffer|
|00002110| 20 77 69 74 68 20 60 3a | 27 20 61 74 0a 65 61 63 | with `:|' at.eac|
|00002120| 68 20 73 74 6f 70 2e 22 | 20 28 69 6e 74 65 72 61 |h stop."| (intera|
|00002130| 63 74 69 76 65 20 22 50 | 22 29 20 28 62 79 74 65 |ctive "P|") (byte|
|00002140| 2d 63 6f 64 65 20 22 c8 | 88 8a c8 18 09 83 11 00 |-code ".|........|
|00002150| c9 c6 21 89 10 82 43 00 | ca cb 0b 21 cc 51 1a cd |..!...C.|...!.Q..|
|00002160| 20 88 60 1c ce 20 88 cf | 0a 0c c5 23 85 35 00 d0 | .`.. ..|...#.5..|
|00002170| d1 21 88 69 08 42 89 10 | 88 82 20 00 88 08 3f 85 |.!.i.B..|.. ...?.|
|00002180| 41 00 d2 d3 cb 0b 21 5c | 22 29 29 88 08 89 16 06 |A.....!\|")).....|
|00002190| 88 d4 08 47 53 08 38 54 | d5 5c 22 1e 07 08 85 67 |...GS.8T|.\"....g|
|000021a0| 00 0e 07 08 40 d6 49 88 | 08 41 89 10 88 82 54 00 |....@.I.|.A....T.|
|000021b0| 88 d7 0e 07 21 29 29 29 | 87 22 20 5b 74 61 62 73 |....!)))|." [tabs|
|000021c0| 20 61 72 67 20 72 65 67 | 65 78 70 20 70 69 63 74 | arg reg|exp pict|
|000021d0| 75 72 65 2d 74 61 62 2d | 63 68 61 72 73 20 62 6f |ure-tab-|chars bo|
|000021e0| 6c 20 74 20 74 61 62 2d | 73 74 6f 70 2d 6c 69 73 |l t tab-|stop-lis|
|000021f0| 74 20 62 6c 75 72 62 20 | 6e 69 6c 20 64 65 66 61 |t blurb |nil defa|
|00002200| 75 6c 74 2d 76 61 6c 75 | 65 20 22 5b 20 09 5d 2b |ult-valu|e "[ .]+|
|00002210| 5b 22 20 72 65 67 65 78 | 70 2d 71 75 6f 74 65 20 |[" regex|p-quote |
|00002220| 22 5d 22 20 62 65 67 69 | 6e 6e 69 6e 67 2d 6f 66 |"]" begi|nning-of|
|00002230| 2d 6c 69 6e 65 20 65 6e | 64 2d 6f 66 2d 6c 69 6e |-line en|d-of-lin|
|00002240| 65 20 72 65 2d 73 65 61 | 72 63 68 2d 62 61 63 6b |e re-sea|rch-back|
|00002250| 77 61 72 64 20 73 6b 69 | 70 2d 63 68 61 72 73 2d |ward ski|p-chars-|
|00002260| 66 6f 72 77 61 72 64 20 | 22 20 09 22 20 65 72 72 |forward |" ." err|
|00002270| 6f 72 20 22 4e 6f 20 63 | 68 61 72 61 63 74 65 72 |or "No c|haracter|
|00002280| 73 20 69 6e 20 73 65 74 | 20 25 73 20 6f 6e 20 74 |s in set| %s on t|
|00002290| 68 69 73 20 6c 69 6e 65 | 2e 22 20 6d 61 6b 65 2d |his line|." make-|
|000022a0| 73 74 72 69 6e 67 20 33 | 32 20 35 38 20 6d 65 73 |string 3|2 58 mes|
|000022b0| 73 61 67 65 5d 20 31 33 | 29 29 0a 0a 28 64 65 66 |sage] 13|))..(def|
|000022c0| 75 6e 20 70 69 63 74 75 | 72 65 2d 74 61 62 2d 73 |un pictu|re-tab-s|
|000022d0| 65 61 72 63 68 20 28 26 | 6f 70 74 69 6f 6e 61 6c |earch (&|optional|
|000022e0| 20 61 72 67 29 20 22 5c | 0a 4d 6f 76 65 20 74 6f | arg) "\|.Move to|
|000022f0| 20 63 6f 6c 75 6d 6e 20 | 62 65 6e 65 61 74 68 20 | column |beneath |
|00002300| 6e 65 78 74 20 69 6e 74 | 65 72 65 73 74 69 6e 67 |next int|eresting|
|00002310| 20 63 68 61 72 20 69 6e | 20 70 72 65 76 69 6f 75 | char in| previou|
|00002320| 73 20 6c 69 6e 65 2e 0a | 57 69 74 68 20 41 52 47 |s line..|With ARG|
|00002330| 20 6d 6f 76 65 20 74 6f | 20 63 6f 6c 75 6d 6e 20 | move to| column |
|00002340| 6f 63 63 75 70 69 65 64 | 20 62 79 20 6e 65 78 74 |occupied| by next|
|00002350| 20 69 6e 74 65 72 65 73 | 74 69 6e 67 20 63 68 61 | interes|ting cha|
|00002360| 72 61 63 74 65 72 20 69 | 6e 20 74 68 69 73 0a 6c |racter i|n this.l|
|00002370| 69 6e 65 2e 20 20 54 68 | 65 20 63 68 61 72 61 63 |ine. Th|e charac|
|00002380| 74 65 72 20 6d 75 73 74 | 20 62 65 20 70 72 65 63 |ter must| be prec|
|00002390| 65 64 65 64 20 62 79 20 | 77 68 69 74 65 73 70 61 |eded by |whitespa|
|000023a0| 63 65 2e 0a 5c 22 69 6e | 74 65 72 65 73 74 69 6e |ce..\"in|terestin|
|000023b0| 67 20 63 68 61 72 61 63 | 74 65 72 73 5c 22 20 61 |g charac|ters\" a|
|000023c0| 72 65 20 64 65 66 69 6e | 65 64 20 62 79 20 76 61 |re defin|ed by va|
|000023d0| 72 69 61 62 6c 65 20 20 | 70 69 63 74 75 72 65 2d |riable |picture-|
|000023e0| 74 61 62 2d 63 68 61 72 | 73 2e 0a 49 66 20 6e 6f |tab-char|s..If no|
|000023f0| 20 73 75 63 68 20 63 68 | 61 72 61 63 74 65 72 20 | such ch|aracter |
|00002400| 69 73 20 66 6f 75 6e 64 | 2c 20 6d 6f 76 65 20 74 |is found|, move t|
|00002410| 6f 20 62 65 67 69 6e 6e | 69 6e 67 20 6f 66 20 6c |o beginn|ing of l|
|00002420| 69 6e 65 2e 22 20 28 69 | 6e 74 65 72 61 63 74 69 |ine." (i|nteracti|
|00002430| 76 65 20 22 50 22 29 20 | 28 62 79 74 65 2d 63 6f |ve "P") |(byte-co|
|00002440| 64 65 20 22 c3 88 69 18 | 8a 09 3f 85 18 00 c4 20 |de "..i.|..?.... |
|00002450| 88 c5 c6 c7 0a 21 50 65 | 5c 22 88 6f 3f 85 1e 00 |.....!Pe|\".o?...|
|00002460| c8 08 21 88 c9 ca c7 0a | 21 cb 51 8a cc 20 88 60 |..!.....|!.Q.. .`|
|00002470| 29 cd 23 83 38 00 69 53 | 89 10 82 3b 00 c3 89 10 |).#.8.iS|...;....|
|00002480| 29 88 08 83 47 00 ce 08 | 21 82 49 00 c4 20 29 87 |)...G...|!.I.. ).|
|00002490| 22 20 5b 74 61 72 67 65 | 74 20 61 72 67 20 70 69 |" [targe|t arg pi|
|000024a0| 63 74 75 72 65 2d 74 61 | 62 2d 63 68 61 72 73 20 |cture-ta|b-chars |
|000024b0| 6e 69 6c 20 62 65 67 69 | 6e 6e 69 6e 67 2d 6f 66 |nil begi|nning-of|
|000024c0| 2d 6c 69 6e 65 20 73 6b | 69 70 2d 63 68 61 72 73 |-line sk|ip-chars|
|000024d0| 2d 62 61 63 6b 77 61 72 | 64 20 22 5e 22 20 72 65 |-backwar|d "^" re|
|000024e0| 67 65 78 70 2d 71 75 6f | 74 65 20 6d 6f 76 65 2d |gexp-quo|te move-|
|000024f0| 74 6f 2d 63 6f 6c 75 6d | 6e 20 72 65 2d 73 65 61 |to-colum|n re-sea|
|00002500| 72 63 68 2d 66 6f 72 77 | 61 72 64 20 22 5b 20 09 |rch-forw|ard "[ .|
|00002510| 5d 2b 5b 22 20 22 5d 22 | 20 65 6e 64 2d 6f 66 2d |]+[" "]"| end-of-|
|00002520| 6c 69 6e 65 20 6d 6f 76 | 65 20 6d 6f 76 65 2d 74 |line mov|e move-t|
|00002530| 6f 2d 63 6f 6c 75 6d 6e | 2d 66 6f 72 63 65 5d 20 |o-column|-force] |
|00002540| 31 30 29 29 0a 0a 28 64 | 65 66 75 6e 20 70 69 63 |10))..(d|efun pic|
|00002550| 74 75 72 65 2d 74 61 62 | 20 28 26 6f 70 74 69 6f |ture-tab| (&optio|
|00002560| 6e 61 6c 20 61 72 67 29 | 20 22 5c 0a 54 61 62 20 |nal arg)| "\.Tab |
|00002570| 74 72 61 6e 73 70 61 72 | 65 6e 74 6c 79 20 28 6d |transpar|ently (m|
|00002580| 6f 76 65 29 20 74 6f 20 | 6e 65 78 74 20 74 61 62 |ove) to |next tab|
|00002590| 20 73 74 6f 70 2e 0a 57 | 69 74 68 20 41 52 47 20 | stop..W|ith ARG |
|000025a0| 6f 76 65 72 77 72 69 74 | 65 20 74 68 65 20 74 72 |overwrit|e the tr|
|000025b0| 61 76 65 72 73 65 64 20 | 74 65 78 74 20 77 69 74 |aversed |text wit|
|000025c0| 68 20 73 70 61 63 65 73 | 2e 20 20 54 68 65 20 74 |h spaces|. The t|
|000025d0| 61 62 20 73 74 6f 70 0a | 6c 69 73 74 20 63 61 6e |ab stop.|list can|
|000025e0| 20 62 65 20 63 68 61 6e | 67 65 64 20 62 79 20 5c | be chan|ged by \|
|000025f0| 5c 5b 70 69 63 74 75 72 | 65 2d 73 65 74 2d 74 61 |\[pictur|e-set-ta|
|00002600| 62 2d 73 74 6f 70 73 5d | 20 61 6e 64 20 5c 5c 5b |b-stops]| and \\[|
|00002610| 65 64 69 74 2d 74 61 62 | 2d 73 74 6f 70 73 5d 2e |edit-tab|-stops].|
|00002620| 0a 53 65 65 20 61 6c 73 | 6f 20 64 6f 63 75 6d 65 |.See als|o docume|
|00002630| 6e 74 61 74 69 6f 6e 20 | 66 6f 72 20 76 61 72 69 |ntation |for vari|
|00002640| 61 62 6c 65 20 20 70 69 | 63 74 75 72 65 2d 74 61 |able pi|cture-ta|
|00002650| 62 2d 63 68 61 72 73 2e | 22 20 28 69 6e 74 65 72 |b-chars.|" (inter|
|00002660| 61 63 74 69 76 65 20 22 | 50 22 29 20 28 62 79 74 |active "|P") (byt|
|00002670| 65 2d 63 6f 64 65 20 22 | c4 88 60 18 c5 20 88 69 |e-code "|..`.. .i|
|00002680| c6 08 60 5c 22 88 19 c7 | 09 21 88 0a 85 20 00 c4 |..`\"...|.!... ..|
|00002690| 1b c6 08 60 5c 22 88 09 | 6a 29 2a 87 22 20 5b 6f |...`\"..|j)*." [o|
|000026a0| 70 6f 69 6e 74 20 74 61 | 72 67 65 74 20 61 72 67 |point ta|rget arg|
|000026b0| 20 69 6e 64 65 6e 74 2d | 74 61 62 73 2d 6d 6f 64 | indent-|tabs-mod|
|000026c0| 65 20 6e 69 6c 20 74 61 | 62 2d 74 6f 2d 74 61 62 |e nil ta|b-to-tab|
|000026d0| 2d 73 74 6f 70 20 64 65 | 6c 65 74 65 2d 72 65 67 |-stop de|lete-reg|
|000026e0| 69 6f 6e 20 6d 6f 76 65 | 2d 74 6f 2d 63 6f 6c 75 |ion move|-to-colu|
|000026f0| 6d 6e 2d 66 6f 72 63 65 | 5d 20 36 29 29 0a 0a 28 |mn-force|] 6))..(|
|00002700| 64 65 66 63 6f 6e 73 74 | 20 70 69 63 74 75 72 65 |defconst| picture|
|00002710| 2d 6b 69 6c 6c 65 64 2d | 72 65 63 74 61 6e 67 6c |-killed-|rectangl|
|00002720| 65 20 6e 69 6c 20 22 5c | 0a 52 65 63 74 61 6e 67 |e nil "\|.Rectang|
|00002730| 6c 65 20 6b 69 6c 6c 65 | 64 20 6f 72 20 63 6f 70 |le kille|d or cop|
|00002740| 69 65 64 20 62 79 20 5c | 5c 5b 70 69 63 74 75 72 |ied by \|\[pictur|
|00002750| 65 2d 63 6c 65 61 72 2d | 72 65 63 74 61 6e 67 6c |e-clear-|rectangl|
|00002760| 65 5d 20 69 6e 20 50 69 | 63 74 75 72 65 20 6d 6f |e] in Pi|cture mo|
|00002770| 64 65 2e 0a 54 68 65 20 | 63 6f 6e 74 65 6e 74 73 |de..The |contents|
|00002780| 20 63 61 6e 20 62 65 20 | 72 65 74 72 69 65 76 65 | can be |retrieve|
|00002790| 64 20 62 79 20 5c 5c 5b | 70 69 63 74 75 72 65 2d |d by \\[|picture-|
|000027a0| 79 61 6e 6b 2d 72 65 63 | 74 61 6e 67 6c 65 5d 22 |yank-rec|tangle]"|
|000027b0| 29 0a 0a 28 64 65 66 75 | 6e 20 70 69 63 74 75 72 |)..(defu|n pictur|
|000027c0| 65 2d 63 6c 65 61 72 2d | 72 65 63 74 61 6e 67 6c |e-clear-|rectangl|
|000027d0| 65 20 28 73 74 61 72 74 | 20 65 6e 64 20 26 6f 70 |e (start| end &op|
|000027e0| 74 69 6f 6e 61 6c 20 6b | 69 6c 6c 70 29 20 22 5c |tional k|illp) "\|
|000027f0| 0a 43 6c 65 61 72 20 61 | 6e 64 20 73 61 76 65 20 |.Clear a|nd save |
|00002800| 72 65 63 74 61 6e 67 6c | 65 20 64 65 6c 69 6e 65 |rectangl|e deline|
|00002810| 61 74 65 64 20 62 79 20 | 70 6f 69 6e 74 20 61 6e |ated by |point an|
|00002820| 64 20 6d 61 72 6b 2e 0a | 54 68 65 20 72 65 63 74 |d mark..|The rect|
|00002830| 61 6e 67 6c 65 20 69 73 | 20 73 61 76 65 64 20 66 |angle is| saved f|
|00002840| 6f 72 20 79 61 6e 6b 69 | 6e 67 20 62 79 20 5c 5c |or yanki|ng by \\|
|00002850| 5b 70 69 63 74 75 72 65 | 2d 79 61 6e 6b 2d 72 65 |[picture|-yank-re|
|00002860| 63 74 61 6e 67 6c 65 5d | 20 61 6e 64 20 72 65 70 |ctangle]| and rep|
|00002870| 6c 61 63 65 64 0a 77 69 | 74 68 20 77 68 69 74 65 |laced.wi|th white|
|00002880| 73 70 61 63 65 2e 20 20 | 54 68 65 20 70 72 65 76 |space. |The prev|
|00002890| 69 6f 75 73 6c 79 20 73 | 61 76 65 64 20 72 65 63 |iously s|aved rec|
|000028a0| 74 61 6e 67 6c 65 2c 20 | 69 66 20 61 6e 79 2c 20 |tangle, |if any, |
|000028b0| 69 73 20 6c 6f 73 74 2e | 0a 57 69 74 68 20 70 72 |is lost.|.With pr|
|000028c0| 65 66 69 78 20 61 72 67 | 75 6d 65 6e 74 2c 20 74 |efix arg|ument, t|
|000028d0| 68 65 20 72 65 63 74 61 | 6e 67 6c 65 20 69 73 20 |he recta|ngle is |
|000028e0| 61 63 74 75 61 6c 6c 79 | 20 6b 69 6c 6c 65 64 2c |actually| killed,|
|000028f0| 20 73 68 69 66 74 69 6e | 67 20 72 65 6d 61 69 6e | shiftin|g remain|
|00002900| 69 6e 67 0a 74 65 78 74 | 2e 22 20 28 69 6e 74 65 |ing.text|." (inte|
|00002910| 72 61 63 74 69 76 65 20 | 22 72 0a 50 22 29 20 28 |ractive |"r.P") (|
|00002920| 62 79 74 65 2d 63 6f 64 | 65 20 22 c4 88 c5 09 0a |byte-cod|e ".....|
|00002930| 0b 23 89 10 87 22 20 5b | 70 69 63 74 75 72 65 2d |.#..." [|picture-|
|00002940| 6b 69 6c 6c 65 64 2d 72 | 65 63 74 61 6e 67 6c 65 |killed-r|ectangle|
|00002950| 20 73 74 61 72 74 20 65 | 6e 64 20 6b 69 6c 6c 70 | start e|nd killp|
|00002960| 20 6e 69 6c 20 70 69 63 | 74 75 72 65 2d 73 6e 61 | nil pic|ture-sna|
|00002970| 72 66 2d 72 65 63 74 61 | 6e 67 6c 65 5d 20 34 29 |rf-recta|ngle] 4)|
|00002980| 29 0a 0a 28 64 65 66 75 | 6e 20 70 69 63 74 75 72 |)..(defu|n pictur|
|00002990| 65 2d 63 6c 65 61 72 2d | 72 65 63 74 61 6e 67 6c |e-clear-|rectangl|
|000029a0| 65 2d 74 6f 2d 72 65 67 | 69 73 74 65 72 20 28 73 |e-to-reg|ister (s|
|000029b0| 74 61 72 74 20 65 6e 64 | 20 72 65 67 69 73 74 65 |tart end| registe|
|000029c0| 72 20 26 6f 70 74 69 6f | 6e 61 6c 20 6b 69 6c 6c |r &optio|nal kill|
|000029d0| 70 29 20 22 5c 0a 43 6c | 65 61 72 20 72 65 63 74 |p) "\.Cl|ear rect|
|000029e0| 61 6e 67 6c 65 20 64 65 | 6c 69 6e 65 61 74 65 64 |angle de|lineated|
|000029f0| 20 62 79 20 70 6f 69 6e | 74 20 61 6e 64 20 6d 61 | by poin|t and ma|
|00002a00| 72 6b 20 69 6e 74 6f 20 | 52 45 47 49 53 54 45 52 |rk into |REGISTER|
|00002a10| 2e 0a 54 68 65 20 72 65 | 63 74 61 6e 67 6c 65 20 |..The re|ctangle |
|00002a20| 69 73 20 73 61 76 65 64 | 20 69 6e 20 52 45 47 49 |is saved| in REGI|
|00002a30| 53 54 45 52 20 61 6e 64 | 20 72 65 70 6c 61 63 65 |STER and| replace|
|00002a40| 64 20 77 69 74 68 20 77 | 68 69 74 65 73 70 61 63 |d with w|hitespac|
|00002a50| 65 2e 0a 57 69 74 68 20 | 70 72 65 66 69 78 20 61 |e..With |prefix a|
|00002a60| 72 67 75 6d 65 6e 74 2c | 20 74 68 65 20 72 65 63 |rgument,| the rec|
|00002a70| 74 61 6e 67 6c 65 20 69 | 73 20 61 63 74 75 61 6c |tangle i|s actual|
|00002a80| 6c 79 20 6b 69 6c 6c 65 | 64 2c 20 73 68 69 66 74 |ly kille|d, shift|
|00002a90| 69 6e 67 20 72 65 6d 61 | 69 6e 69 6e 67 0a 74 65 |ing rema|ining.te|
|00002aa0| 78 74 2e 22 20 28 69 6e | 74 65 72 61 63 74 69 76 |xt." (in|teractiv|
|00002ab0| 65 20 22 72 0a 63 52 65 | 63 74 61 6e 67 6c 65 20 |e "r.cRe|ctangle |
|00002ac0| 74 6f 20 72 65 67 69 73 | 74 65 72 3a 20 0a 50 22 |to regis|ter: .P"|
|00002ad0| 29 20 28 62 79 74 65 2d | 63 6f 64 65 20 22 c4 88 |) (byte-|code "..|
|00002ae0| c5 08 c6 09 0a 0b 23 5c | 22 87 22 20 5b 72 65 67 |......#\|"." [reg|
|00002af0| 69 73 74 65 72 20 73 74 | 61 72 74 20 65 6e 64 20 |ister st|art end |
|00002b00| 6b 69 6c 6c 70 20 6e 69 | 6c 20 73 65 74 2d 72 65 |killp ni|l set-re|
|00002b10| 67 69 73 74 65 72 20 70 | 69 63 74 75 72 65 2d 73 |gister p|icture-s|
|00002b20| 6e 61 72 66 2d 72 65 63 | 74 61 6e 67 6c 65 5d 20 |narf-rec|tangle] |
|00002b30| 36 29 29 0a 0a 28 64 65 | 66 75 6e 20 70 69 63 74 |6))..(de|fun pict|
|00002b40| 75 72 65 2d 73 6e 61 72 | 66 2d 72 65 63 74 61 6e |ure-snar|f-rectan|
|00002b50| 67 6c 65 20 28 73 74 61 | 72 74 20 65 6e 64 20 26 |gle (sta|rt end &|
|00002b60| 6f 70 74 69 6f 6e 61 6c | 20 6b 69 6c 6c 70 29 20 |optional| killp) |
|00002b70| 28 62 79 74 65 2d 63 6f | 64 65 20 22 69 c2 19 18 |(byte-co|de "i...|
|00002b80| 8a 0b 83 10 00 c6 0c 0d | 5c 22 82 19 00 c7 0c 0d |........|\"......|
|00002b90| 5c 22 c8 0c 0d 5c 22 88 | 29 c9 08 21 88 2a 87 22 |\"...\".|)..!.*."|
|00002ba0| 20 5b 63 6f 6c 75 6d 6e | 20 69 6e 64 65 6e 74 2d | [column| indent-|
|00002bb0| 74 61 62 73 2d 6d 6f 64 | 65 20 6e 69 6c 20 6b 69 |tabs-mod|e nil ki|
|00002bc0| 6c 6c 70 20 73 74 61 72 | 74 20 65 6e 64 20 64 65 |llp star|t end de|
|00002bd0| 6c 65 74 65 2d 65 78 74 | 72 61 63 74 2d 72 65 63 |lete-ext|ract-rec|
|00002be0| 74 61 6e 67 6c 65 20 65 | 78 74 72 61 63 74 2d 72 |tangle e|xtract-r|
|00002bf0| 65 63 74 61 6e 67 6c 65 | 20 63 6c 65 61 72 2d 72 |ectangle| clear-r|
|00002c00| 65 63 74 61 6e 67 6c 65 | 20 6d 6f 76 65 2d 74 6f |ectangle| move-to|
|00002c10| 2d 63 6f 6c 75 6d 6e 2d | 66 6f 72 63 65 5d 20 36 |-column-|force] 6|
|00002c20| 29 29 0a 0a 28 64 65 66 | 75 6e 20 70 69 63 74 75 |))..(def|un pictu|
|00002c30| 72 65 2d 79 61 6e 6b 2d | 72 65 63 74 61 6e 67 6c |re-yank-|rectangl|
|00002c40| 65 20 28 26 6f 70 74 69 | 6f 6e 61 6c 20 69 6e 73 |e (&opti|onal ins|
|00002c50| 65 72 74 70 29 20 22 5c | 0a 4f 76 65 72 6c 61 79 |ertp) "\|.Overlay|
|00002c60| 20 72 65 63 74 61 6e 67 | 6c 65 20 73 61 76 65 64 | rectang|le saved|
|00002c70| 20 62 79 20 5c 5c 5b 70 | 69 63 74 75 72 65 2d 63 | by \\[p|icture-c|
|00002c80| 6c 65 61 72 2d 72 65 63 | 74 61 6e 67 6c 65 5d 0a |lear-rec|tangle].|
|00002c90| 54 68 65 20 72 65 63 74 | 61 6e 67 6c 65 20 69 73 |The rect|angle is|
|00002ca0| 20 70 6f 73 69 74 69 6f | 6e 65 64 20 77 69 74 68 | positio|ned with|
|00002cb0| 20 75 70 70 65 72 20 6c | 65 66 74 20 63 6f 72 6e | upper l|eft corn|
|00002cc0| 65 72 20 61 74 20 70 6f | 69 6e 74 2c 20 6f 76 65 |er at po|int, ove|
|00002cd0| 72 77 72 69 74 69 6e 67 | 0a 65 78 69 73 74 69 6e |rwriting|.existin|
|00002ce0| 67 20 74 65 78 74 2e 20 | 20 57 69 74 68 20 70 72 |g text. | With pr|
|00002cf0| 65 66 69 78 20 61 72 67 | 75 6d 65 6e 74 2c 20 74 |efix arg|ument, t|
|00002d00| 68 65 20 72 65 63 74 61 | 6e 67 6c 65 20 69 73 20 |he recta|ngle is |
|00002d10| 69 6e 73 65 72 74 65 64 | 20 69 6e 73 74 65 61 64 |inserted| instead|
|00002d20| 2c 0a 73 68 69 66 74 69 | 6e 67 20 65 78 69 73 74 |,.shifti|ng exist|
|00002d30| 69 6e 67 20 74 65 78 74 | 2e 20 20 4c 65 61 76 65 |ing text|. Leave|
|00002d40| 73 20 6d 61 72 6b 20 61 | 74 20 6f 6e 65 20 63 6f |s mark a|t one co|
|00002d50| 72 6e 65 72 20 6f 66 20 | 72 65 63 74 61 6e 67 6c |rner of |rectangl|
|00002d60| 65 20 61 6e 64 0a 70 6f | 69 6e 74 20 61 74 20 74 |e and.po|int at t|
|00002d70| 68 65 20 6f 74 68 65 72 | 20 28 64 69 61 67 6f 6e |he other| (diagon|
|00002d80| 61 6c 6c 79 20 6f 70 70 | 6f 73 65 64 29 20 63 6f |ally opp|osed) co|
|00002d90| 72 6e 65 72 2e 22 20 28 | 69 6e 74 65 72 61 63 74 |rner." (|interact|
|00002da0| 69 76 65 20 22 50 22 29 | 20 28 62 79 74 65 2d 63 |ive "P")| (byte-c|
|00002db0| 6f 64 65 20 22 c2 88 08 | 3a 3f 83 0e 00 c3 c4 21 |ode "...|:?.....!|
|00002dc0| 82 12 00 c5 08 09 5c 22 | 87 22 20 5b 70 69 63 74 |......\"|." [pict|
|00002dd0| 75 72 65 2d 6b 69 6c 6c | 65 64 2d 72 65 63 74 61 |ure-kill|ed-recta|
|00002de0| 6e 67 6c 65 20 69 6e 73 | 65 72 74 70 20 6e 69 6c |ngle ins|ertp nil|
|00002df0| 20 65 72 72 6f 72 20 22 | 4e 6f 20 72 65 63 74 61 | error "|No recta|
|00002e00| 6e 67 6c 65 20 73 61 76 | 65 64 2e 22 20 70 69 63 |ngle sav|ed." pic|
|00002e10| 74 75 72 65 2d 69 6e 73 | 65 72 74 2d 72 65 63 74 |ture-ins|ert-rect|
|00002e20| 61 6e 67 6c 65 5d 20 34 | 29 29 0a 0a 28 64 65 66 |angle] 4|))..(def|
|00002e30| 75 6e 20 70 69 63 74 75 | 72 65 2d 79 61 6e 6b 2d |un pictu|re-yank-|
|00002e40| 72 65 63 74 61 6e 67 6c | 65 2d 66 72 6f 6d 2d 72 |rectangl|e-from-r|
|00002e50| 65 67 69 73 74 65 72 20 | 28 72 65 67 69 73 74 65 |egister |(registe|
|00002e60| 72 20 26 6f 70 74 69 6f | 6e 61 6c 20 69 6e 73 65 |r &optio|nal inse|
|00002e70| 72 74 70 29 20 22 5c 0a | 4f 76 65 72 6c 61 79 20 |rtp) "\.|Overlay |
|00002e80| 72 65 63 74 61 6e 67 6c | 65 20 73 61 76 65 64 20 |rectangl|e saved |
|00002e90| 69 6e 20 52 45 47 49 53 | 54 45 52 2e 0a 54 68 65 |in REGIS|TER..The|
|00002ea0| 20 72 65 63 74 61 6e 67 | 6c 65 20 69 73 20 70 6f | rectang|le is po|
|00002eb0| 73 69 74 69 6f 6e 65 64 | 20 77 69 74 68 20 75 70 |sitioned| with up|
|00002ec0| 70 65 72 20 6c 65 66 74 | 20 63 6f 72 6e 65 72 20 |per left| corner |
|00002ed0| 61 74 20 70 6f 69 6e 74 | 2c 20 6f 76 65 72 77 72 |at point|, overwr|
|00002ee0| 69 74 69 6e 67 0a 65 78 | 69 73 74 69 6e 67 20 74 |iting.ex|isting t|
|00002ef0| 65 78 74 2e 20 20 57 69 | 74 68 20 70 72 65 66 69 |ext. Wi|th prefi|
|00002f00| 78 20 61 72 67 75 6d 65 | 6e 74 2c 20 74 68 65 20 |x argume|nt, the |
|00002f10| 72 65 63 74 61 6e 67 6c | 65 20 69 73 0a 69 6e 73 |rectangl|e is.ins|
|00002f20| 65 72 74 65 64 20 69 6e | 73 74 65 61 64 2c 20 73 |erted in|stead, s|
|00002f30| 68 69 66 74 69 6e 67 20 | 65 78 69 73 74 69 6e 67 |hifting |existing|
|00002f40| 20 74 65 78 74 2e 20 20 | 4c 65 61 76 65 73 20 6d | text. |Leaves m|
|00002f50| 61 72 6b 20 61 74 20 6f | 6e 65 20 63 6f 72 6e 65 |ark at o|ne corne|
|00002f60| 72 0a 6f 66 20 72 65 63 | 74 61 6e 67 6c 65 20 61 |r.of rec|tangle a|
|00002f70| 6e 64 20 70 6f 69 6e 74 | 20 61 74 20 74 68 65 20 |nd point| at the |
|00002f80| 6f 74 68 65 72 20 28 64 | 69 61 67 6f 6e 61 6c 6c |other (d|iagonall|
|00002f90| 79 20 6f 70 70 6f 73 65 | 64 29 20 63 6f 72 6e 65 |y oppose|d) corne|
|00002fa0| 72 2e 22 20 28 69 6e 74 | 65 72 61 63 74 69 76 65 |r." (int|eractive|
|00002fb0| 20 22 63 52 65 63 74 61 | 6e 67 6c 65 20 66 72 6f | "cRecta|ngle fro|
|00002fc0| 6d 20 72 65 67 69 73 74 | 65 72 3a 20 0a 50 22 29 |m regist|er: .P")|
|00002fd0| 20 28 62 79 74 65 2d 63 | 6f 64 65 20 22 c3 88 c4 | (byte-c|ode "...|
|00002fe0| 09 21 18 08 3a 3f 83 13 | 00 c5 c6 09 5c 22 82 17 |.!..:?..|....\"..|
|00002ff0| 00 c7 08 0a 5c 22 29 87 | 22 20 5b 72 65 63 74 61 |....\").|" [recta|
|00003000| 6e 67 6c 65 20 72 65 67 | 69 73 74 65 72 20 69 6e |ngle reg|ister in|
|00003010| 73 65 72 74 70 20 6e 69 | 6c 20 67 65 74 2d 72 65 |sertp ni|l get-re|
|00003020| 67 69 73 74 65 72 20 65 | 72 72 6f 72 20 22 52 65 |gister e|rror "Re|
|00003030| 67 69 73 74 65 72 20 25 | 63 20 64 6f 65 73 20 6e |gister %|c does n|
|00003040| 6f 74 20 63 6f 6e 74 61 | 69 6e 20 61 20 72 65 63 |ot conta|in a rec|
|00003050| 74 61 6e 67 6c 65 2e 22 | 20 70 69 63 74 75 72 65 |tangle."| picture|
|00003060| 2d 69 6e 73 65 72 74 2d | 72 65 63 74 61 6e 67 6c |-insert-|rectangl|
|00003070| 65 5d 20 35 29 29 0a 0a | 28 64 65 66 75 6e 20 70 |e] 5))..|(defun p|
|00003080| 69 63 74 75 72 65 2d 69 | 6e 73 65 72 74 2d 72 65 |icture-i|nsert-re|
|00003090| 63 74 61 6e 67 6c 65 20 | 28 72 65 63 74 61 6e 67 |ctangle |(rectang|
|000030a0| 6c 65 20 26 6f 70 74 69 | 6f 6e 61 6c 20 69 6e 73 |le &opti|onal ins|
|000030b0| 65 72 74 70 29 20 22 5c | 0a 4f 76 65 72 6c 61 79 |ertp) "\|.Overlay|
|000030c0| 20 52 45 43 54 41 4e 47 | 4c 45 20 77 69 74 68 20 | RECTANG|LE with |
|000030d0| 75 70 70 65 72 20 6c 65 | 66 74 20 63 6f 72 6e 65 |upper le|ft corne|
|000030e0| 72 20 61 74 20 70 6f 69 | 6e 74 2e 0a 4f 70 74 69 |r at poi|nt..Opti|
|000030f0| 6f 6e 61 6c 20 61 72 67 | 75 6d 65 6e 74 20 49 4e |onal arg|ument IN|
|00003100| 53 45 52 54 50 2c 20 69 | 66 20 6e 6f 6e 2d 6e 69 |SERTP, i|f non-ni|
|00003110| 6c 20 63 61 75 73 65 73 | 20 52 45 43 54 41 4e 47 |l causes| RECTANG|
|00003120| 4c 45 20 74 6f 20 62 65 | 20 69 6e 73 65 72 74 65 |LE to be| inserte|
|00003130| 64 2e 0a 4c 65 61 76 65 | 73 20 74 68 65 20 72 65 |d..Leave|s the re|
|00003140| 67 69 6f 6e 20 73 75 72 | 72 6f 75 6e 64 69 6e 67 |gion sur|rounding|
|00003150| 20 74 68 65 20 72 65 63 | 74 61 6e 67 6c 65 2e 22 | the rec|tangle."|
|00003160| 20 28 62 79 74 65 2d 63 | 6f 64 65 20 22 c1 18 0a | (byte-c|ode "...|
|00003170| 3f 85 19 00 8a c4 60 c5 | 0b 40 47 21 88 c6 0b 47 |?.....`.|.@G!...G|
|00003180| 53 21 88 60 5c 22 29 88 | c7 20 88 c8 0b 21 29 87 |S!.`\").|. ...!).|
|00003190| 22 20 5b 69 6e 64 65 6e | 74 2d 74 61 62 73 2d 6d |" [inden|t-tabs-m|
|000031a0| 6f 64 65 20 6e 69 6c 20 | 69 6e 73 65 72 74 70 20 |ode nil |insertp |
|000031b0| 72 65 63 74 61 6e 67 6c | 65 20 64 65 6c 65 74 65 |rectangl|e delete|
|000031c0| 2d 72 65 63 74 61 6e 67 | 6c 65 20 70 69 63 74 75 |-rectang|le pictu|
|000031d0| 72 65 2d 66 6f 72 77 61 | 72 64 2d 63 6f 6c 75 6d |re-forwa|rd-colum|
|000031e0| 6e 20 70 69 63 74 75 72 | 65 2d 6d 6f 76 65 2d 64 |n pictur|e-move-d|
|000031f0| 6f 77 6e 20 70 75 73 68 | 2d 6d 61 72 6b 20 69 6e |own push|-mark in|
|00003200| 73 65 72 74 2d 72 65 63 | 74 61 6e 67 6c 65 5d 20 |sert-rec|tangle] |
|00003210| 36 29 29 0a 0a 28 64 65 | 66 63 6f 6e 73 74 20 70 |6))..(de|fconst p|
|00003220| 69 63 74 75 72 65 2d 6d | 6f 64 65 2d 6d 61 70 20 |icture-m|ode-map |
|00003230| 6e 69 6c 29 0a 0a 28 69 | 66 20 28 6e 6f 74 20 70 |nil)..(i|f (not p|
|00003240| 69 63 74 75 72 65 2d 6d | 6f 64 65 2d 6d 61 70 29 |icture-m|ode-map)|
|00003250| 20 28 6c 65 74 20 28 28 | 69 20 33 32 29 29 20 28 | (let ((|i 32)) (|
|00003260| 73 65 74 71 20 70 69 63 | 74 75 72 65 2d 6d 6f 64 |setq pic|ture-mod|
|00003270| 65 2d 6d 61 70 20 28 6d | 61 6b 65 2d 6b 65 79 6d |e-map (m|ake-keym|
|00003280| 61 70 29 29 20 28 77 68 | 69 6c 65 20 28 3c 20 69 |ap)) (wh|ile (< i|
|00003290| 20 31 32 37 29 20 28 61 | 73 65 74 20 70 69 63 74 | 127) (a|set pict|
|000032a0| 75 72 65 2d 6d 6f 64 65 | 2d 6d 61 70 20 69 20 28 |ure-mode|-map i (|
|000032b0| 71 75 6f 74 65 20 70 69 | 63 74 75 72 65 2d 73 65 |quote pi|cture-se|
|000032c0| 6c 66 2d 69 6e 73 65 72 | 74 29 29 20 28 73 65 74 |lf-inser|t)) (set|
|000032d0| 71 20 69 20 28 31 2b 20 | 69 29 29 29 20 28 64 65 |q i (1+ |i))) (de|
|000032e0| 66 69 6e 65 2d 6b 65 79 | 20 70 69 63 74 75 72 65 |fine-key| picture|
|000032f0| 2d 6d 6f 64 65 2d 6d 61 | 70 20 22 06 22 20 28 71 |-mode-ma|p "." (q|
|00003300| 75 6f 74 65 20 70 69 63 | 74 75 72 65 2d 66 6f 72 |uote pic|ture-for|
|00003310| 77 61 72 64 2d 63 6f 6c | 75 6d 6e 29 29 20 28 64 |ward-col|umn)) (d|
|00003320| 65 66 69 6e 65 2d 6b 65 | 79 20 70 69 63 74 75 72 |efine-ke|y pictur|
|00003330| 65 2d 6d 6f 64 65 2d 6d | 61 70 20 22 02 22 20 28 |e-mode-m|ap "." (|
|00003340| 71 75 6f 74 65 20 70 69 | 63 74 75 72 65 2d 62 61 |quote pi|cture-ba|
|00003350| 63 6b 77 61 72 64 2d 63 | 6f 6c 75 6d 6e 29 29 20 |ckward-c|olumn)) |
|00003360| 28 64 65 66 69 6e 65 2d | 6b 65 79 20 70 69 63 74 |(define-|key pict|
|00003370| 75 72 65 2d 6d 6f 64 65 | 2d 6d 61 70 20 22 04 22 |ure-mode|-map "."|
|00003380| 20 28 71 75 6f 74 65 20 | 70 69 63 74 75 72 65 2d | (quote |picture-|
|00003390| 63 6c 65 61 72 2d 63 6f | 6c 75 6d 6e 29 29 20 28 |clear-co|lumn)) (|
|000033a0| 64 65 66 69 6e 65 2d 6b | 65 79 20 70 69 63 74 75 |define-k|ey pictu|
|000033b0| 72 65 2d 6d 6f 64 65 2d | 6d 61 70 20 22 03 04 22 |re-mode-|map ".."|
|000033c0| 20 28 71 75 6f 74 65 20 | 64 65 6c 65 74 65 2d 63 | (quote |delete-c|
|000033d0| 68 61 72 29 29 20 28 64 | 65 66 69 6e 65 2d 6b 65 |har)) (d|efine-ke|
|000033e0| 79 20 70 69 63 74 75 72 | 65 2d 6d 6f 64 65 2d 6d |y pictur|e-mode-m|
|000033f0| 61 70 20 22 7f 22 20 28 | 71 75 6f 74 65 20 70 69 |ap "." (|quote pi|
|00003400| 63 74 75 72 65 2d 62 61 | 63 6b 77 61 72 64 2d 63 |cture-ba|ckward-c|
|00003410| 6c 65 61 72 2d 63 6f 6c | 75 6d 6e 29 29 20 28 64 |lear-col|umn)) (d|
|00003420| 65 66 69 6e 65 2d 6b 65 | 79 20 70 69 63 74 75 72 |efine-ke|y pictur|
|00003430| 65 2d 6d 6f 64 65 2d 6d | 61 70 20 22 0b 22 20 28 |e-mode-m|ap "." (|
|00003440| 71 75 6f 74 65 20 70 69 | 63 74 75 72 65 2d 63 6c |quote pi|cture-cl|
|00003450| 65 61 72 2d 6c 69 6e 65 | 29 29 20 28 64 65 66 69 |ear-line|)) (defi|
|00003460| 6e 65 2d 6b 65 79 20 70 | 69 63 74 75 72 65 2d 6d |ne-key p|icture-m|
|00003470| 6f 64 65 2d 6d 61 70 20 | 22 0f 22 20 28 71 75 6f |ode-map |"." (quo|
|00003480| 74 65 20 70 69 63 74 75 | 72 65 2d 6f 70 65 6e 2d |te pictu|re-open-|
|00003490| 6c 69 6e 65 29 29 20 28 | 64 65 66 69 6e 65 2d 6b |line)) (|define-k|
|000034a0| 65 79 20 70 69 63 74 75 | 72 65 2d 6d 6f 64 65 2d |ey pictu|re-mode-|
|000034b0| 6d 61 70 20 22 0d 22 20 | 28 71 75 6f 74 65 20 70 |map "." |(quote p|
|000034c0| 69 63 74 75 72 65 2d 6e | 65 77 6c 69 6e 65 29 29 |icture-n|ewline))|
|000034d0| 20 28 64 65 66 69 6e 65 | 2d 6b 65 79 20 70 69 63 | (define|-key pic|
|000034e0| 74 75 72 65 2d 6d 6f 64 | 65 2d 6d 61 70 20 22 0a |ture-mod|e-map ".|
|000034f0| 22 20 28 71 75 6f 74 65 | 20 70 69 63 74 75 72 65 |" (quote| picture|
|00003500| 2d 64 75 70 6c 69 63 61 | 74 65 2d 6c 69 6e 65 29 |-duplica|te-line)|
|00003510| 29 20 28 64 65 66 69 6e | 65 2d 6b 65 79 20 70 69 |) (defin|e-key pi|
|00003520| 63 74 75 72 65 2d 6d 6f | 64 65 2d 6d 61 70 20 22 |cture-mo|de-map "|
|00003530| 0e 22 20 28 71 75 6f 74 | 65 20 70 69 63 74 75 72 |." (quot|e pictur|
|00003540| 65 2d 6d 6f 76 65 2d 64 | 6f 77 6e 29 29 20 28 64 |e-move-d|own)) (d|
|00003550| 65 66 69 6e 65 2d 6b 65 | 79 20 70 69 63 74 75 72 |efine-ke|y pictur|
|00003560| 65 2d 6d 6f 64 65 2d 6d | 61 70 20 22 10 22 20 28 |e-mode-m|ap "." (|
|00003570| 71 75 6f 74 65 20 70 69 | 63 74 75 72 65 2d 6d 6f |quote pi|cture-mo|
|00003580| 76 65 2d 75 70 29 29 20 | 28 64 65 66 69 6e 65 2d |ve-up)) |(define-|
|00003590| 6b 65 79 20 70 69 63 74 | 75 72 65 2d 6d 6f 64 65 |key pict|ure-mode|
|000035a0| 2d 6d 61 70 20 22 05 22 | 20 28 71 75 6f 74 65 20 |-map "."| (quote |
|000035b0| 70 69 63 74 75 72 65 2d | 65 6e 64 2d 6f 66 2d 6c |picture-|end-of-l|
|000035c0| 69 6e 65 29 29 20 28 64 | 65 66 69 6e 65 2d 6b 65 |ine)) (d|efine-ke|
|000035d0| 79 20 70 69 63 74 75 72 | 65 2d 6d 6f 64 65 2d 6d |y pictur|e-mode-m|
|000035e0| 61 70 20 22 1b 09 22 20 | 28 71 75 6f 74 65 20 70 |ap ".." |(quote p|
|000035f0| 69 63 74 75 72 65 2d 74 | 6f 67 67 6c 65 2d 74 61 |icture-t|oggle-ta|
|00003600| 62 2d 73 74 61 74 65 29 | 29 20 28 64 65 66 69 6e |b-state)|) (defin|
|00003610| 65 2d 6b 65 79 20 70 69 | 63 74 75 72 65 2d 6d 6f |e-key pi|cture-mo|
|00003620| 64 65 2d 6d 61 70 20 22 | 09 22 20 28 71 75 6f 74 |de-map "|." (quot|
|00003630| 65 20 70 69 63 74 75 72 | 65 2d 74 61 62 29 29 20 |e pictur|e-tab)) |
|00003640| 28 64 65 66 69 6e 65 2d | 6b 65 79 20 70 69 63 74 |(define-|key pict|
|00003650| 75 72 65 2d 6d 6f 64 65 | 2d 6d 61 70 20 22 1b 09 |ure-mode|-map "..|
|00003660| 22 20 28 71 75 6f 74 65 | 20 70 69 63 74 75 72 65 |" (quote| picture|
|00003670| 2d 74 61 62 2d 73 65 61 | 72 63 68 29 29 20 28 64 |-tab-sea|rch)) (d|
|00003680| 65 66 69 6e 65 2d 6b 65 | 79 20 70 69 63 74 75 72 |efine-ke|y pictur|
|00003690| 65 2d 6d 6f 64 65 2d 6d | 61 70 20 22 03 09 22 20 |e-mode-m|ap ".." |
|000036a0| 28 71 75 6f 74 65 20 70 | 69 63 74 75 72 65 2d 73 |(quote p|icture-s|
|000036b0| 65 74 2d 74 61 62 2d 73 | 74 6f 70 73 29 29 20 28 |et-tab-s|tops)) (|
|000036c0| 64 65 66 69 6e 65 2d 6b | 65 79 20 70 69 63 74 75 |define-k|ey pictu|
|000036d0| 72 65 2d 6d 6f 64 65 2d | 6d 61 70 20 22 03 0b 22 |re-mode-|map ".."|
|000036e0| 20 28 71 75 6f 74 65 20 | 70 69 63 74 75 72 65 2d | (quote |picture-|
|000036f0| 63 6c 65 61 72 2d 72 65 | 63 74 61 6e 67 6c 65 29 |clear-re|ctangle)|
|00003700| 29 20 28 64 65 66 69 6e | 65 2d 6b 65 79 20 70 69 |) (defin|e-key pi|
|00003710| 63 74 75 72 65 2d 6d 6f | 64 65 2d 6d 61 70 20 22 |cture-mo|de-map "|
|00003720| 03 17 22 20 28 71 75 6f | 74 65 20 70 69 63 74 75 |.." (quo|te pictu|
|00003730| 72 65 2d 63 6c 65 61 72 | 2d 72 65 63 74 61 6e 67 |re-clear|-rectang|
|00003740| 6c 65 2d 74 6f 2d 72 65 | 67 69 73 74 65 72 29 29 |le-to-re|gister))|
|00003750| 20 28 64 65 66 69 6e 65 | 2d 6b 65 79 20 70 69 63 | (define|-key pic|
|00003760| 74 75 72 65 2d 6d 6f 64 | 65 2d 6d 61 70 20 22 03 |ture-mod|e-map ".|
|00003770| 19 22 20 28 71 75 6f 74 | 65 20 70 69 63 74 75 72 |." (quot|e pictur|
|00003780| 65 2d 79 61 6e 6b 2d 72 | 65 63 74 61 6e 67 6c 65 |e-yank-r|ectangle|
|00003790| 29 29 20 28 64 65 66 69 | 6e 65 2d 6b 65 79 20 70 |)) (defi|ne-key p|
|000037a0| 69 63 74 75 72 65 2d 6d | 6f 64 65 2d 6d 61 70 20 |icture-m|ode-map |
|000037b0| 22 03 18 22 20 28 71 75 | 6f 74 65 20 70 69 63 74 |".." (qu|ote pict|
|000037c0| 75 72 65 2d 79 61 6e 6b | 2d 72 65 63 74 61 6e 67 |ure-yank|-rectang|
|000037d0| 6c 65 2d 66 72 6f 6d 2d | 72 65 67 69 73 74 65 72 |le-from-|register|
|000037e0| 29 29 20 28 64 65 66 69 | 6e 65 2d 6b 65 79 20 70 |)) (defi|ne-key p|
|000037f0| 69 63 74 75 72 65 2d 6d | 6f 64 65 2d 6d 61 70 20 |icture-m|ode-map |
|00003800| 22 03 03 22 20 28 71 75 | 6f 74 65 20 70 69 63 74 |".." (qu|ote pict|
|00003810| 75 72 65 2d 6d 6f 64 65 | 2d 65 78 69 74 29 29 20 |ure-mode|-exit)) |
|00003820| 28 64 65 66 69 6e 65 2d | 6b 65 79 20 70 69 63 74 |(define-|key pict|
|00003830| 75 72 65 2d 6d 6f 64 65 | 2d 6d 61 70 20 22 03 06 |ure-mode|-map "..|
|00003840| 22 20 28 71 75 6f 74 65 | 20 70 69 63 74 75 72 65 |" (quote| picture|
|00003850| 2d 6d 6f 74 69 6f 6e 29 | 29 20 28 64 65 66 69 6e |-motion)|) (defin|
|00003860| 65 2d 6b 65 79 20 70 69 | 63 74 75 72 65 2d 6d 6f |e-key pi|cture-mo|
|00003870| 64 65 2d 6d 61 70 20 22 | 03 02 22 20 28 71 75 6f |de-map "|.." (quo|
|00003880| 74 65 20 70 69 63 74 75 | 72 65 2d 6d 6f 74 69 6f |te pictu|re-motio|
|00003890| 6e 2d 72 65 76 65 72 73 | 65 29 29 20 28 64 65 66 |n-revers|e)) (def|
|000038a0| 69 6e 65 2d 6b 65 79 20 | 70 69 63 74 75 72 65 2d |ine-key |picture-|
|000038b0| 6d 6f 64 65 2d 6d 61 70 | 20 22 03 3c 22 20 28 71 |mode-map| ".<" (q|
|000038c0| 75 6f 74 65 20 70 69 63 | 74 75 72 65 2d 6d 6f 76 |uote pic|ture-mov|
|000038d0| 65 6d 65 6e 74 2d 6c 65 | 66 74 29 29 20 28 64 65 |ement-le|ft)) (de|
|000038e0| 66 69 6e 65 2d 6b 65 79 | 20 70 69 63 74 75 72 65 |fine-key| picture|
|000038f0| 2d 6d 6f 64 65 2d 6d 61 | 70 20 22 03 3e 22 20 28 |-mode-ma|p ".>" (|
|00003900| 71 75 6f 74 65 20 70 69 | 63 74 75 72 65 2d 6d 6f |quote pi|cture-mo|
|00003910| 76 65 6d 65 6e 74 2d 72 | 69 67 68 74 29 29 20 28 |vement-r|ight)) (|
|00003920| 64 65 66 69 6e 65 2d 6b | 65 79 20 70 69 63 74 75 |define-k|ey pictu|
|00003930| 72 65 2d 6d 6f 64 65 2d | 6d 61 70 20 22 03 5e 22 |re-mode-|map ".^"|
|00003940| 20 28 71 75 6f 74 65 20 | 70 69 63 74 75 72 65 2d | (quote |picture-|
|00003950| 6d 6f 76 65 6d 65 6e 74 | 2d 75 70 29 29 20 28 64 |movement|-up)) (d|
|00003960| 65 66 69 6e 65 2d 6b 65 | 79 20 70 69 63 74 75 72 |efine-ke|y pictur|
|00003970| 65 2d 6d 6f 64 65 2d 6d | 61 70 20 22 03 2e 22 20 |e-mode-m|ap ".." |
|00003980| 28 71 75 6f 74 65 20 70 | 69 63 74 75 72 65 2d 6d |(quote p|icture-m|
|00003990| 6f 76 65 6d 65 6e 74 2d | 64 6f 77 6e 29 29 20 28 |ovement-|down)) (|
|000039a0| 64 65 66 69 6e 65 2d 6b | 65 79 20 70 69 63 74 75 |define-k|ey pictu|
|000039b0| 72 65 2d 6d 6f 64 65 2d | 6d 61 70 20 22 03 60 22 |re-mode-|map ".`"|
|000039c0| 20 28 71 75 6f 74 65 20 | 70 69 63 74 75 72 65 2d | (quote |picture-|
|000039d0| 6d 6f 76 65 6d 65 6e 74 | 2d 6e 77 29 29 20 28 64 |movement|-nw)) (d|
|000039e0| 65 66 69 6e 65 2d 6b 65 | 79 20 70 69 63 74 75 72 |efine-ke|y pictur|
|000039f0| 65 2d 6d 6f 64 65 2d 6d | 61 70 20 22 03 27 22 20 |e-mode-m|ap ".'" |
|00003a00| 28 71 75 6f 74 65 20 70 | 69 63 74 75 72 65 2d 6d |(quote p|icture-m|
|00003a10| 6f 76 65 6d 65 6e 74 2d | 6e 65 29 29 20 28 64 65 |ovement-|ne)) (de|
|00003a20| 66 69 6e 65 2d 6b 65 79 | 20 70 69 63 74 75 72 65 |fine-key| picture|
|00003a30| 2d 6d 6f 64 65 2d 6d 61 | 70 20 22 03 2f 22 20 28 |-mode-ma|p "./" (|
|00003a40| 71 75 6f 74 65 20 70 69 | 63 74 75 72 65 2d 6d 6f |quote pi|cture-mo|
|00003a50| 76 65 6d 65 6e 74 2d 73 | 77 29 29 20 28 64 65 66 |vement-s|w)) (def|
|00003a60| 69 6e 65 2d 6b 65 79 20 | 70 69 63 74 75 72 65 2d |ine-key |picture-|
|00003a70| 6d 6f 64 65 2d 6d 61 70 | 20 22 03 5c 5c 22 20 28 |mode-map| ".\\" (|
|00003a80| 71 75 6f 74 65 20 70 69 | 63 74 75 72 65 2d 6d 6f |quote pi|cture-mo|
|00003a90| 76 65 6d 65 6e 74 2d 73 | 65 29 29 29 29 0a 0a 28 |vement-s|e))))..(|
|00003aa0| 64 65 66 76 61 72 20 65 | 64 69 74 2d 70 69 63 74 |defvar e|dit-pict|
|00003ab0| 75 72 65 2d 68 6f 6f 6b | 20 6e 69 6c 20 22 5c 0a |ure-hook| nil "\.|
|00003ac0| 49 66 20 6e 6f 6e 2d 6e | 69 6c 2c 20 69 74 27 73 |If non-n|il, it's|
|00003ad0| 20 76 61 6c 75 65 20 69 | 73 20 63 61 6c 6c 65 64 | value i|s called|
|00003ae0| 20 6f 6e 20 65 6e 74 72 | 79 20 74 6f 20 50 69 63 | on entr|y to Pic|
|00003af0| 74 75 72 65 20 6d 6f 64 | 65 2e 0a 50 69 63 74 75 |ture mod|e..Pictu|
|00003b00| 72 65 20 6d 6f 64 65 20 | 69 73 20 69 6e 76 6f 6b |re mode |is invok|
|00003b10| 65 64 20 62 79 20 74 68 | 65 20 63 6f 6d 6d 61 6e |ed by th|e comman|
|00003b20| 64 20 5c 5c 5b 65 64 69 | 74 2d 70 69 63 74 75 72 |d \\[edi|t-pictur|
|00003b30| 65 5d 2e 22 29 0a 0a 28 | 64 65 66 75 6e 20 65 64 |e].")..(|defun ed|
|00003b40| 69 74 2d 70 69 63 74 75 | 72 65 20 6e 69 6c 20 22 |it-pictu|re nil "|
|00003b50| 5c 0a 53 77 69 74 63 68 | 20 74 6f 20 50 69 63 74 |\.Switch| to Pict|
|00003b60| 75 72 65 20 6d 6f 64 65 | 2c 20 69 6e 20 77 68 69 |ure mode|, in whi|
|00003b70| 63 68 20 61 20 71 75 61 | 72 74 65 72 2d 70 6c 61 |ch a qua|rter-pla|
|00003b80| 6e 65 20 73 63 72 65 65 | 6e 20 6d 6f 64 65 6c 20 |ne scree|n model |
|00003b90| 69 73 20 75 73 65 64 2e | 0a 50 72 69 6e 74 69 6e |is used.|.Printin|
|00003ba0| 67 20 63 68 61 72 61 63 | 74 65 72 73 20 72 65 70 |g charac|ters rep|
|00003bb0| 6c 61 63 65 20 69 6e 73 | 74 65 61 64 20 6f 66 20 |lace ins|tead of |
|00003bc0| 69 6e 73 65 72 74 69 6e | 67 20 74 68 65 6d 73 65 |insertin|g themse|
|00003bd0| 6c 76 65 73 20 77 69 74 | 68 20 6d 6f 74 69 6f 6e |lves wit|h motion|
|00003be0| 0a 61 66 74 65 72 77 61 | 72 64 73 20 73 65 74 74 |.afterwa|rds sett|
|00003bf0| 61 62 6c 65 20 62 79 20 | 74 68 65 73 65 20 63 6f |able by |these co|
|00003c00| 6d 6d 61 6e 64 73 3a 0a | 20 20 43 2d 63 20 3c 09 |mmands:.| C-c <.|
|00003c10| 20 20 4d 6f 76 65 20 6c | 65 66 74 20 61 66 74 65 | Move l|eft afte|
|00003c20| 72 20 69 6e 73 65 72 74 | 69 6f 6e 2e 0a 20 20 43 |r insert|ion.. C|
|00003c30| 2d 63 20 3e 09 20 20 4d | 6f 76 65 20 72 69 67 68 |-c >. M|ove righ|
|00003c40| 74 20 61 66 74 65 72 20 | 69 6e 73 65 72 74 69 6f |t after |insertio|
|00003c50| 6e 2e 0a 20 20 43 2d 63 | 20 5e 09 20 20 4d 6f 76 |n.. C-c| ^. Mov|
|00003c60| 65 20 75 70 20 61 66 74 | 65 72 20 69 6e 73 65 72 |e up aft|er inser|
|00003c70| 74 69 6f 6e 2e 0a 20 20 | 43 2d 63 20 2e 09 20 20 |tion.. |C-c .. |
|00003c80| 4d 6f 76 65 20 64 6f 77 | 6e 20 61 66 74 65 72 20 |Move dow|n after |
|00003c90| 69 6e 73 65 72 74 69 6f | 6e 2e 0a 20 20 43 2d 63 |insertio|n.. C-c|
|00003ca0| 20 60 09 20 20 4d 6f 76 | 65 20 6e 6f 72 74 68 77 | `. Mov|e northw|
|00003cb0| 65 73 74 20 28 6e 77 29 | 20 61 66 74 65 72 20 69 |est (nw)| after i|
|00003cc0| 6e 73 65 72 74 69 6f 6e | 2e 0a 20 20 43 2d 63 20 |nsertion|.. C-c |
|00003cd0| 27 09 20 20 4d 6f 76 65 | 20 6e 6f 72 74 68 65 61 |'. Move| northea|
|00003ce0| 73 74 20 28 6e 65 29 20 | 61 66 74 65 72 20 69 6e |st (ne) |after in|
|00003cf0| 73 65 72 74 69 6f 6e 2e | 0a 20 20 43 2d 63 20 2f |sertion.|. C-c /|
|00003d00| 09 20 20 4d 6f 76 65 20 | 73 6f 75 74 68 77 65 73 |. Move |southwes|
|00003d10| 74 20 28 73 77 29 20 61 | 66 74 65 72 20 69 6e 73 |t (sw) a|fter ins|
|00003d20| 65 72 74 69 6f 6e 2e 0a | 20 20 43 2d 63 20 5c 5c |ertion..| C-c \\|
|00003d30| 20 20 20 4d 6f 76 65 20 | 73 6f 75 74 68 65 61 73 | Move |southeas|
|00003d40| 74 20 28 73 65 29 20 61 | 66 74 65 72 20 69 6e 73 |t (se) a|fter ins|
|00003d50| 65 72 74 69 6f 6e 2e 0a | 54 68 65 20 63 75 72 72 |ertion..|The curr|
|00003d60| 65 6e 74 20 64 69 72 65 | 63 74 69 6f 6e 20 69 73 |ent dire|ction is|
|00003d70| 20 64 69 73 70 6c 61 79 | 65 64 20 69 6e 20 74 68 | display|ed in th|
|00003d80| 65 20 6d 6f 64 65 20 6c | 69 6e 65 2e 20 20 54 68 |e mode l|ine. Th|
|00003d90| 65 20 69 6e 69 74 69 61 | 6c 0a 64 69 72 65 63 74 |e initia|l.direct|
|00003da0| 69 6f 6e 20 69 73 20 72 | 69 67 68 74 2e 20 20 57 |ion is r|ight. W|
|00003db0| 68 69 74 65 73 70 61 63 | 65 20 69 73 20 69 6e 73 |hitespac|e is ins|
|00003dc0| 65 72 74 65 64 20 61 6e | 64 20 74 61 62 73 20 61 |erted an|d tabs a|
|00003dd0| 72 65 20 63 68 61 6e 67 | 65 64 20 74 6f 0a 73 70 |re chang|ed to.sp|
|00003de0| 61 63 65 73 20 77 68 65 | 6e 20 72 65 71 75 69 72 |aces whe|n requir|
|00003df0| 65 64 20 62 79 20 6d 6f | 76 65 6d 65 6e 74 2e 20 |ed by mo|vement. |
|00003e00| 20 59 6f 75 20 63 61 6e | 20 6d 6f 76 65 20 61 72 | You can| move ar|
|00003e10| 6f 75 6e 64 20 69 6e 20 | 74 68 65 20 62 75 66 66 |ound in |the buff|
|00003e20| 65 72 0a 77 69 74 68 20 | 74 68 65 73 65 20 63 6f |er.with |these co|
|00003e30| 6d 6d 61 6e 64 73 3a 0a | 20 20 43 2d 70 09 20 20 |mmands:.| C-p. |
|00003e40| 4d 6f 76 65 20 76 65 72 | 74 69 63 61 6c 6c 79 20 |Move ver|tically |
|00003e50| 74 6f 20 53 41 4d 45 20 | 63 6f 6c 75 6d 6e 20 69 |to SAME |column i|
|00003e60| 6e 20 70 72 65 76 69 6f | 75 73 20 6c 69 6e 65 2e |n previo|us line.|
|00003e70| 0a 20 20 43 2d 6e 09 20 | 20 4d 6f 76 65 20 76 65 |. C-n. | Move ve|
|00003e80| 72 74 69 63 61 6c 6c 79 | 20 74 6f 20 53 41 4d 45 |rtically| to SAME|
|00003e90| 20 63 6f 6c 75 6d 6e 20 | 69 6e 20 6e 65 78 74 20 | column |in next |
|00003ea0| 6c 69 6e 65 2e 0a 20 20 | 43 2d 65 09 20 20 4d 6f |line.. |C-e. Mo|
|00003eb0| 76 65 20 74 6f 20 63 6f | 6c 75 6d 6e 20 66 6f 6c |ve to co|lumn fol|
|00003ec0| 6c 6f 77 69 6e 67 20 6c | 61 73 74 20 6e 6f 6e 2d |lowing l|ast non-|
|00003ed0| 77 68 69 74 65 73 70 61 | 63 65 20 63 68 61 72 61 |whitespa|ce chara|
|00003ee0| 63 74 65 72 2e 0a 20 20 | 43 2d 66 09 20 20 4d 6f |cter.. |C-f. Mo|
|00003ef0| 76 65 20 72 69 67 68 74 | 20 69 6e 73 65 72 74 69 |ve right| inserti|
|00003f00| 6e 67 20 73 70 61 63 65 | 73 20 69 66 20 72 65 71 |ng space|s if req|
|00003f10| 75 69 72 65 64 2e 0a 20 | 20 43 2d 62 09 20 20 4d |uired.. | C-b. M|
|00003f20| 6f 76 65 20 6c 65 66 74 | 20 63 68 61 6e 67 69 6e |ove left| changin|
|00003f30| 67 20 74 61 62 73 20 74 | 6f 20 73 70 61 63 65 73 |g tabs t|o spaces|
|00003f40| 20 69 66 20 72 65 71 75 | 69 72 65 64 2e 0a 20 20 | if requ|ired.. |
|00003f50| 43 2d 63 20 43 2d 66 20 | 4d 6f 76 65 20 69 6e 20 |C-c C-f |Move in |
|00003f60| 64 69 72 65 63 74 69 6f | 6e 20 6f 66 20 63 75 72 |directio|n of cur|
|00003f70| 72 65 6e 74 20 70 69 63 | 74 75 72 65 20 6d 6f 74 |rent pic|ture mot|
|00003f80| 69 6f 6e 2e 0a 20 20 43 | 2d 63 20 43 2d 62 20 4d |ion.. C|-c C-b M|
|00003f90| 6f 76 65 20 69 6e 20 6f | 70 70 6f 73 69 74 65 20 |ove in o|pposite |
|00003fa0| 64 69 72 65 63 74 69 6f | 6e 20 6f 66 20 63 75 72 |directio|n of cur|
|00003fb0| 72 65 6e 74 20 70 69 63 | 74 75 72 65 20 6d 6f 74 |rent pic|ture mot|
|00003fc0| 69 6f 6e 2e 0a 20 20 52 | 65 74 75 72 6e 20 20 4d |ion.. R|eturn M|
|00003fd0| 6f 76 65 20 74 6f 20 62 | 65 67 69 6e 6e 69 6e 67 |ove to b|eginning|
|00003fe0| 20 6f 66 20 6e 65 78 74 | 20 6c 69 6e 65 2e 0a 59 | of next| line..Y|
|00003ff0| 6f 75 20 63 61 6e 20 65 | 64 69 74 20 74 61 62 75 |ou can e|dit tabu|
|00004000| 6c 61 72 20 74 65 78 74 | 20 77 69 74 68 20 74 68 |lar text| with th|
|00004010| 65 73 65 20 63 6f 6d 6d | 61 6e 64 73 3a 0a 20 20 |ese comm|ands:. |
|00004020| 4d 2d 54 61 62 09 20 20 | 4d 6f 76 65 20 74 6f 20 |M-Tab. |Move to |
|00004030| 63 6f 6c 75 6d 6e 20 62 | 65 6e 65 61 74 68 20 28 |column b|eneath (|
|00004040| 6f 72 20 61 74 29 20 6e | 65 78 74 20 69 6e 74 65 |or at) n|ext inte|
|00004050| 72 65 73 74 69 6e 67 20 | 63 68 61 72 61 63 74 65 |resting |characte|
|00004060| 72 2e 0a 09 20 20 20 20 | 60 49 6e 64 65 6e 74 73 |r... |`Indents|
|00004070| 27 20 72 65 6c 61 74 69 | 76 65 20 74 6f 20 61 20 |' relati|ve to a |
|00004080| 70 72 65 76 69 6f 75 73 | 20 6c 69 6e 65 2e 0a 20 |previous| line.. |
|00004090| 20 54 61 62 09 20 20 4d | 6f 76 65 20 74 6f 20 6e | Tab. M|ove to n|
|000040a0| 65 78 74 20 73 74 6f 70 | 20 69 6e 20 74 61 62 20 |ext stop| in tab |
|000040b0| 73 74 6f 70 20 6c 69 73 | 74 2e 0a 20 20 43 2d 63 |stop lis|t.. C-c|
|000040c0| 20 54 61 62 20 53 65 74 | 20 74 61 62 20 73 74 6f | Tab Set| tab sto|
|000040d0| 70 73 20 61 63 63 6f 72 | 64 69 6e 67 20 74 6f 20 |ps accor|ding to |
|000040e0| 63 6f 6e 74 65 78 74 20 | 6f 66 20 74 68 69 73 20 |context |of this |
|000040f0| 6c 69 6e 65 2e 0a 09 20 | 20 20 20 57 69 74 68 20 |line... | With |
|00004100| 41 52 47 20 72 65 73 65 | 74 73 20 74 61 62 20 73 |ARG rese|ts tab s|
|00004110| 74 6f 70 73 20 74 6f 20 | 64 65 66 61 75 6c 74 20 |tops to |default |
|00004120| 28 67 6c 6f 62 61 6c 29 | 20 76 61 6c 75 65 2e 0a |(global)| value..|
|00004130| 09 20 20 20 20 53 65 65 | 20 61 6c 73 6f 20 64 6f |. See| also do|
|00004140| 63 75 6d 65 6e 74 61 74 | 69 6f 6e 20 6f 66 20 76 |cumentat|ion of v|
|00004150| 61 72 69 61 62 6c 65 09 | 70 69 63 74 75 72 65 2d |ariable.|picture-|
|00004160| 74 61 62 2d 63 68 61 72 | 73 0a 09 20 20 20 20 77 |tab-char|s.. w|
|00004170| 68 69 63 68 20 64 65 66 | 69 6e 65 73 20 5c 22 69 |hich def|ines \"i|
|00004180| 6e 74 65 72 65 73 74 69 | 6e 67 20 63 68 61 72 61 |nteresti|ng chara|
|00004190| 63 74 65 72 5c 22 2e 20 | 20 59 6f 75 20 63 61 6e |cter\". | You can|
|000041a0| 20 6d 61 6e 75 61 6c 6c | 79 0a 09 20 20 20 20 63 | manuall|y.. c|
|000041b0| 68 61 6e 67 65 20 74 68 | 65 20 74 61 62 20 73 74 |hange th|e tab st|
|000041c0| 6f 70 20 6c 69 73 74 20 | 77 69 74 68 20 63 6f 6d |op list |with com|
|000041d0| 6d 61 6e 64 20 5c 5c 5b | 65 64 69 74 2d 74 61 62 |mand \\[|edit-tab|
|000041e0| 2d 73 74 6f 70 73 5d 2e | 0a 59 6f 75 20 63 61 6e |-stops].|.You can|
|000041f0| 20 6d 61 6e 69 70 75 6c | 61 74 65 20 74 65 78 74 | manipul|ate text|
|00004200| 20 77 69 74 68 20 74 68 | 65 73 65 20 63 6f 6d 6d | with th|ese comm|
|00004210| 61 6e 64 73 3a 0a 20 20 | 43 2d 64 09 20 20 43 6c |ands:. |C-d. Cl|
|00004220| 65 61 72 20 28 72 65 70 | 6c 61 63 65 29 20 41 52 |ear (rep|lace) AR|
|00004230| 47 20 63 6f 6c 75 6d 6e | 73 20 61 66 74 65 72 20 |G column|s after |
|00004240| 70 6f 69 6e 74 20 77 69 | 74 68 6f 75 74 20 6d 6f |point wi|thout mo|
|00004250| 76 69 6e 67 2e 0a 20 20 | 43 2d 63 20 43 2d 64 20 |ving.. |C-c C-d |
|00004260| 44 65 6c 65 74 65 20 63 | 68 61 72 20 61 74 20 70 |Delete c|har at p|
|00004270| 6f 69 6e 74 20 2d 20 74 | 68 65 20 63 6f 6d 6d 61 |oint - t|he comma|
|00004280| 6e 64 20 6e 6f 72 6d 61 | 6c 6c 79 20 61 73 73 69 |nd norma|lly assi|
|00004290| 67 6e 65 64 20 74 6f 20 | 43 2d 64 2e 0a 20 20 44 |gned to |C-d.. D|
|000042a0| 65 6c 65 74 65 20 20 43 | 6c 65 61 72 20 28 72 65 |elete C|lear (re|
|000042b0| 70 6c 61 63 65 29 20 41 | 52 47 20 63 6f 6c 75 6d |place) A|RG colum|
|000042c0| 6e 73 20 62 65 66 6f 72 | 65 20 70 6f 69 6e 74 2c |ns befor|e point,|
|000042d0| 20 6d 6f 76 69 6e 67 20 | 62 61 63 6b 20 6f 76 65 | moving |back ove|
|000042e0| 72 20 74 68 65 6d 2e 0a | 20 20 43 2d 6b 09 20 20 |r them..| C-k. |
|000042f0| 43 6c 65 61 72 20 41 52 | 47 20 6c 69 6e 65 73 2c |Clear AR|G lines,|
|00004300| 20 61 64 76 61 6e 63 69 | 6e 67 20 6f 76 65 72 20 | advanci|ng over |
|00004310| 74 68 65 6d 2e 09 20 54 | 68 65 20 63 6c 65 61 72 |them.. T|he clear|
|00004320| 65 64 0a 09 20 20 20 20 | 74 65 78 74 20 69 73 20 |ed.. |text is |
|00004330| 73 61 76 65 64 20 69 6e | 20 74 68 65 20 6b 69 6c |saved in| the kil|
|00004340| 6c 20 72 69 6e 67 2e 0a | 20 20 43 2d 6f 09 20 20 |l ring..| C-o. |
|00004350| 4f 70 65 6e 20 62 6c 61 | 6e 6b 20 6c 69 6e 65 28 |Open bla|nk line(|
|00004360| 73 29 20 62 65 6e 65 61 | 74 68 20 63 75 72 72 65 |s) benea|th curre|
|00004370| 6e 74 20 6c 69 6e 65 2e | 0a 59 6f 75 20 63 61 6e |nt line.|.You can|
|00004380| 20 6d 61 6e 69 70 75 6c | 61 74 65 20 72 65 63 74 | manipul|ate rect|
|00004390| 61 6e 67 6c 65 73 20 77 | 69 74 68 20 74 68 65 73 |angles w|ith thes|
|000043a0| 65 20 63 6f 6d 6d 61 6e | 64 73 3a 0a 20 20 43 2d |e comman|ds:. C-|
|000043b0| 63 20 43 2d 6b 20 43 6c | 65 61 72 20 28 6f 72 20 |c C-k Cl|ear (or |
|000043c0| 6b 69 6c 6c 29 20 61 20 | 72 65 63 74 61 6e 67 6c |kill) a |rectangl|
|000043d0| 65 20 61 6e 64 20 73 61 | 76 65 20 69 74 2e 0a 20 |e and sa|ve it.. |
|000043e0| 20 43 2d 63 20 43 2d 77 | 20 4c 69 6b 65 20 43 2d | C-c C-w| Like C-|
|000043f0| 63 20 43 2d 6b 20 65 78 | 63 65 70 74 20 72 65 63 |c C-k ex|cept rec|
|00004400| 74 61 6e 67 6c 65 20 69 | 73 20 73 61 76 65 64 20 |tangle i|s saved |
|00004410| 69 6e 20 6e 61 6d 65 64 | 20 72 65 67 69 73 74 65 |in named| registe|
|00004420| 72 2e 0a 20 20 43 2d 63 | 20 43 2d 79 20 4f 76 65 |r.. C-c| C-y Ove|
|00004430| 72 6c 61 79 20 28 6f 72 | 20 69 6e 73 65 72 74 29 |rlay (or| insert)|
|00004440| 20 63 75 72 72 65 6e 74 | 6c 79 20 73 61 76 65 64 | current|ly saved|
|00004450| 20 72 65 63 74 61 6e 67 | 6c 65 20 61 74 20 70 6f | rectang|le at po|
|00004460| 69 6e 74 2e 0a 20 20 43 | 2d 63 20 43 2d 78 20 4c |int.. C|-c C-x L|
|00004470| 69 6b 65 20 43 2d 63 20 | 43 2d 79 20 65 78 63 65 |ike C-c |C-y exce|
|00004480| 70 74 20 72 65 63 74 61 | 6e 67 6c 65 20 69 73 20 |pt recta|ngle is |
|00004490| 74 61 6b 65 6e 20 66 72 | 6f 6d 20 6e 61 6d 65 64 |taken fr|om named|
|000044a0| 20 72 65 67 69 73 74 65 | 72 2e 0a 20 20 5c 5c 5b | registe|r.. \\[|
|000044b0| 63 6f 70 79 2d 72 65 63 | 74 61 6e 67 6c 65 2d 74 |copy-rec|tangle-t|
|000044c0| 6f 2d 72 65 67 69 73 74 | 65 72 5d 20 20 20 43 6f |o-regist|er] Co|
|000044d0| 70 69 65 73 20 61 20 72 | 65 63 74 61 6e 67 6c 65 |pies a r|ectangle|
|000044e0| 20 74 6f 20 61 20 72 65 | 67 69 73 74 65 72 2e 0a | to a re|gister..|
|000044f0| 20 20 5c 5c 5b 61 64 76 | 65 72 74 69 73 65 64 2d | \\[adv|ertised-|
|00004500| 75 6e 64 6f 5d 20 20 20 | 43 61 6e 20 75 6e 64 6f |undo] |Can undo|
|00004510| 20 65 66 66 65 63 74 73 | 20 6f 66 20 72 65 63 74 | effects| of rect|
|00004520| 61 6e 67 6c 65 20 6f 76 | 65 72 6c 61 79 20 63 6f |angle ov|erlay co|
|00004530| 6d 6d 61 6e 64 73 0a 09 | 20 20 20 20 63 6f 6d 6d |mmands..| comm|
|00004540| 61 6e 64 73 20 69 66 20 | 69 6e 76 6f 6b 65 64 20 |ands if |invoked |
|00004550| 73 6f 6f 6e 20 65 6e 6f | 75 67 68 2e 0a 59 6f 75 |soon eno|ugh..You|
|00004560| 20 63 61 6e 20 72 65 74 | 75 72 6e 20 74 6f 20 74 | can ret|urn to t|
|00004570| 68 65 20 70 72 65 76 69 | 6f 75 73 20 6d 6f 64 65 |he previ|ous mode|
|00004580| 20 77 69 74 68 3a 0a 20 | 20 43 2d 63 20 43 2d 63 | with:. | C-c C-c|
|00004590| 20 57 68 69 63 68 20 61 | 6c 73 6f 20 73 74 72 69 | Which a|lso stri|
|000045a0| 70 73 20 74 72 61 69 6c | 69 6e 67 20 77 68 69 74 |ps trail|ing whit|
|000045b0| 65 73 70 61 63 65 20 66 | 72 6f 6d 20 65 76 65 72 |espace f|rom ever|
|000045c0| 79 20 6c 69 6e 65 2e 0a | 09 20 20 20 20 53 74 72 |y line..|. Str|
|000045d0| 69 70 70 69 6e 67 20 69 | 73 20 73 75 70 70 72 65 |ipping i|s suppre|
|000045e0| 73 73 65 64 20 62 79 20 | 73 75 70 70 6c 79 69 6e |ssed by |supplyin|
|000045f0| 67 20 61 6e 20 61 72 67 | 75 6d 65 6e 74 2e 0a 0a |g an arg|ument...|
|00004600| 45 6e 74 72 79 20 74 6f | 20 74 68 69 73 20 6d 6f |Entry to| this mo|
|00004610| 64 65 20 63 61 6c 6c 73 | 20 74 68 65 20 76 61 6c |de calls| the val|
|00004620| 75 65 20 6f 66 20 20 65 | 64 69 74 2d 70 69 63 74 |ue of e|dit-pict|
|00004630| 75 72 65 2d 68 6f 6f 6b | 20 20 69 66 20 6e 6f 6e |ure-hook| if non|
|00004640| 2d 6e 69 6c 2e 0a 0a 4e | 6f 74 65 20 74 68 61 74 |-nil...N|ote that|
|00004650| 20 50 69 63 74 75 72 65 | 20 6d 6f 64 65 20 63 6f | Picture| mode co|
|00004660| 6d 6d 61 6e 64 73 20 77 | 69 6c 6c 20 77 6f 72 6b |mmands w|ill work|
|00004670| 20 6f 75 74 73 69 64 65 | 20 6f 66 20 50 69 63 74 | outside| of Pict|
|00004680| 75 72 65 20 6d 6f 64 65 | 2c 20 62 75 74 0a 74 68 |ure mode|, but.th|
|00004690| 65 79 20 61 72 65 20 6e | 6f 74 20 64 65 66 61 75 |ey are n|ot defau|
|000046a0| 6c 74 6c 79 20 61 73 73 | 69 67 6e 65 64 20 74 6f |ltly ass|igned to|
|000046b0| 20 6b 65 79 73 2e 22 20 | 28 69 6e 74 65 72 61 63 | keys." |(interac|
|000046c0| 74 69 76 65 29 20 28 62 | 79 74 65 2d 63 6f 64 65 |tive) (b|yte-code|
|000046d0| 20 22 c7 88 08 ca 3d 83 | 0e 00 cb cc 21 82 65 00 | "....=.|....!.e.|
|000046e0| cd c1 21 88 ce 20 89 11 | 88 cf 0a 21 88 cd c3 21 |..!.. ..|...!...!|
|000046f0| 88 0c 89 13 88 cd c5 21 | 88 08 89 15 88 ca 89 10 |.......!|........|
|00004700| 88 cd c6 21 88 c7 89 16 | 06 88 cd c8 21 88 d0 c8 |...!....|....!...|
|00004710| 21 89 16 08 88 cd c9 21 | 88 d0 c9 21 89 16 09 88 |!......!|...!....|
|00004720| cd d1 21 88 cd d2 21 88 | d3 d4 d5 5c 22 88 d6 d7 |..!...!.|...\"...|
|00004730| 21 88 d8 d9 da 21 0b 5c | 22 87 22 20 5b 6d 61 6a |!....!.\|"." [maj|
|00004740| 6f 72 2d 6d 6f 64 65 20 | 70 69 63 74 75 72 65 2d |or-mode |picture-|
|00004750| 6d 6f 64 65 2d 6f 6c 64 | 2d 6c 6f 63 61 6c 2d 6d |mode-old|-local-m|
|00004760| 61 70 20 70 69 63 74 75 | 72 65 2d 6d 6f 64 65 2d |ap pictu|re-mode-|
|00004770| 6d 61 70 20 70 69 63 74 | 75 72 65 2d 6d 6f 64 65 |map pict|ure-mode|
|00004780| 2d 6f 6c 64 2d 6d 6f 64 | 65 2d 6e 61 6d 65 20 6d |-old-mod|e-name m|
|00004790| 6f 64 65 2d 6e 61 6d 65 | 20 70 69 63 74 75 72 65 |ode-name| picture|
|000047a0| 2d 6d 6f 64 65 2d 6f 6c | 64 2d 6d 61 6a 6f 72 2d |-mode-ol|d-major-|
|000047b0| 6d 6f 64 65 20 70 69 63 | 74 75 72 65 2d 6b 69 6c |mode pic|ture-kil|
|000047c0| 6c 65 64 2d 72 65 63 74 | 61 6e 67 6c 65 20 6e 69 |led-rect|angle ni|
|000047d0| 6c 20 74 61 62 2d 73 74 | 6f 70 2d 6c 69 73 74 20 |l tab-st|op-list |
|000047e0| 70 69 63 74 75 72 65 2d | 74 61 62 2d 63 68 61 72 |picture-|tab-char|
|000047f0| 73 20 65 64 69 74 2d 70 | 69 63 74 75 72 65 20 65 |s edit-p|icture e|
|00004800| 72 72 6f 72 20 22 59 6f | 75 20 61 72 65 20 61 6c |rror "Yo|u are al|
|00004810| 72 65 61 64 79 20 65 64 | 69 74 69 6e 67 20 61 20 |ready ed|iting a |
|00004820| 50 69 63 74 75 72 65 2e | 22 20 6d 61 6b 65 2d 6c |Picture.|" make-l|
|00004830| 6f 63 61 6c 2d 76 61 72 | 69 61 62 6c 65 20 63 75 |ocal-var|iable cu|
|00004840| 72 72 65 6e 74 2d 6c 6f | 63 61 6c 2d 6d 61 70 20 |rrent-lo|cal-map |
|00004850| 75 73 65 2d 6c 6f 63 61 | 6c 2d 6d 61 70 20 64 65 |use-loca|l-map de|
|00004860| 66 61 75 6c 74 2d 76 61 | 6c 75 65 20 70 69 63 74 |fault-va|lue pict|
|00004870| 75 72 65 2d 76 65 72 74 | 69 63 61 6c 2d 73 74 65 |ure-vert|ical-ste|
|00004880| 70 20 70 69 63 74 75 72 | 65 2d 68 6f 72 69 7a 6f |p pictur|e-horizo|
|00004890| 6e 74 61 6c 2d 73 74 65 | 70 20 70 69 63 74 75 72 |ntal-ste|p pictur|
|000048a0| 65 2d 73 65 74 2d 6d 6f | 74 69 6f 6e 20 30 20 31 |e-set-mo|tion 0 1|
|000048b0| 20 72 75 6e 2d 68 6f 6f | 6b 73 20 65 64 69 74 2d | run-hoo|ks edit-|
|000048c0| 70 69 63 74 75 72 65 2d | 68 6f 6f 6b 20 6d 65 73 |picture-|hook mes|
|000048d0| 73 61 67 65 20 73 75 62 | 73 74 69 74 75 74 65 2d |sage sub|stitute-|
|000048e0| 63 6f 6d 6d 61 6e 64 2d | 6b 65 79 73 20 22 54 79 |command-|keys "Ty|
|000048f0| 70 65 20 5c 5c 5b 70 69 | 63 74 75 72 65 2d 6d 6f |pe \\[pi|cture-mo|
|00004900| 64 65 2d 65 78 69 74 5d | 20 69 6e 20 74 68 69 73 |de-exit]| in this|
|00004910| 20 62 75 66 66 65 72 20 | 74 6f 20 72 65 74 75 72 | buffer |to retur|
|00004920| 6e 20 69 74 20 74 6f 20 | 25 73 20 6d 6f 64 65 2e |n it to |%s mode.|
|00004930| 22 5d 20 31 39 29 29 0a | 0a 28 66 73 65 74 20 28 |"] 19)).|.(fset (|
|00004940| 71 75 6f 74 65 20 70 69 | 63 74 75 72 65 2d 6d 6f |quote pi|cture-mo|
|00004950| 64 65 29 20 28 71 75 6f | 74 65 20 65 64 69 74 2d |de) (quo|te edit-|
|00004960| 70 69 63 74 75 72 65 29 | 29 0a 0a 28 64 65 66 75 |picture)|)..(defu|
|00004970| 6e 20 70 69 63 74 75 72 | 65 2d 6d 6f 64 65 2d 65 |n pictur|e-mode-e|
|00004980| 78 69 74 20 28 26 6f 70 | 74 69 6f 6e 61 6c 20 6e |xit (&op|tional n|
|00004990| 6f 73 74 72 69 70 29 20 | 22 5c 0a 55 6e 64 6f 20 |ostrip) |"\.Undo |
|000049a0| 65 64 69 74 2d 70 69 63 | 74 75 72 65 20 61 6e 64 |edit-pic|ture and|
|000049b0| 20 72 65 74 75 72 6e 20 | 74 6f 20 70 72 65 76 69 | return |to previ|
|000049c0| 6f 75 73 20 6d 61 6a 6f | 72 20 6d 6f 64 65 2e 0a |ous majo|r mode..|
|000049d0| 57 69 74 68 20 6e 6f 20 | 61 72 67 75 6d 65 6e 74 |With no |argument|
|000049e0| 20 73 74 72 69 70 73 20 | 77 68 69 74 65 73 70 61 | strips |whitespa|
|000049f0| 63 65 20 66 72 6f 6d 20 | 65 6e 64 20 6f 66 20 65 |ce from |end of e|
|00004a00| 76 65 72 79 20 6c 69 6e | 65 20 69 6e 20 50 69 63 |very lin|e in Pic|
|00004a10| 74 75 72 65 20 62 75 66 | 66 65 72 0a 20 20 6f 74 |ture buf|fer. ot|
|00004a20| 68 65 72 77 69 73 65 20 | 6a 75 73 74 20 72 65 74 |herwise |just ret|
|00004a30| 75 72 6e 20 74 6f 20 70 | 72 65 76 69 6f 75 73 20 |urn to p|revious |
|00004a40| 6d 6f 64 65 2e 22 20 28 | 69 6e 74 65 72 61 63 74 |mode." (|interact|
|00004a50| 69 76 65 20 22 50 22 29 | 20 28 62 79 74 65 2d 63 |ive "P")| (byte-c|
|00004a60| 6f 64 65 20 22 c6 88 08 | c7 3d 3f 83 0f 00 c8 c9 |ode "...|.=?.....|
|00004a70| 21 82 2b 00 09 3f 85 16 | 00 ca 20 88 0b 89 12 88 |!.+..?..|.. .....|
|00004a80| cb 0c 21 88 0d 89 10 88 | cc cd 21 88 ce cf 20 21 |..!.....|..!... !|
|00004a90| 87 22 20 5b 6d 61 6a 6f | 72 2d 6d 6f 64 65 20 6e |." [majo|r-mode n|
|00004aa0| 6f 73 74 72 69 70 20 6d | 6f 64 65 2d 6e 61 6d 65 |ostrip m|ode-name|
|00004ab0| 20 70 69 63 74 75 72 65 | 2d 6d 6f 64 65 2d 6f 6c | picture|-mode-ol|
|00004ac0| 64 2d 6d 6f 64 65 2d 6e | 61 6d 65 20 70 69 63 74 |d-mode-n|ame pict|
|00004ad0| 75 72 65 2d 6d 6f 64 65 | 2d 6f 6c 64 2d 6c 6f 63 |ure-mode|-old-loc|
|00004ae0| 61 6c 2d 6d 61 70 20 70 | 69 63 74 75 72 65 2d 6d |al-map p|icture-m|
|00004af0| 6f 64 65 2d 6f 6c 64 2d | 6d 61 6a 6f 72 2d 6d 6f |ode-old-|major-mo|
|00004b00| 64 65 20 6e 69 6c 20 65 | 64 69 74 2d 70 69 63 74 |de nil e|dit-pict|
|00004b10| 75 72 65 20 65 72 72 6f | 72 20 22 59 6f 75 20 61 |ure erro|r "You a|
|00004b20| 72 65 6e 27 74 20 65 64 | 69 74 69 6e 67 20 61 20 |ren't ed|iting a |
|00004b30| 50 69 63 74 75 72 65 2e | 22 20 70 69 63 74 75 72 |Picture.|" pictur|
|00004b40| 65 2d 63 6c 65 61 6e 20 | 75 73 65 2d 6c 6f 63 61 |e-clean |use-loca|
|00004b50| 6c 2d 6d 61 70 20 6b 69 | 6c 6c 2d 6c 6f 63 61 6c |l-map ki|ll-local|
|00004b60| 2d 76 61 72 69 61 62 6c | 65 20 74 61 62 2d 73 74 |-variabl|e tab-st|
|00004b70| 6f 70 2d 6c 69 73 74 20 | 73 65 74 2d 62 75 66 66 |op-list |set-buff|
|00004b80| 65 72 2d 6d 6f 64 69 66 | 69 65 64 2d 70 20 62 75 |er-modif|ied-p bu|
|00004b90| 66 66 65 72 2d 6d 6f 64 | 69 66 69 65 64 2d 70 5d |ffer-mod|ified-p]|
|00004ba0| 20 37 29 29 0a 0a 28 64 | 65 66 75 6e 20 70 69 63 | 7))..(d|efun pic|
|00004bb0| 74 75 72 65 2d 63 6c 65 | 61 6e 20 6e 69 6c 20 22 |ture-cle|an nil "|
|00004bc0| 5c 0a 45 6c 69 6d 69 6e | 61 74 65 20 77 68 69 74 |\.Elimin|ate whit|
|00004bd0| 65 73 70 61 63 65 20 61 | 74 20 65 6e 64 73 20 6f |espace a|t ends o|
|00004be0| 66 20 6c 69 6e 65 73 2e | 22 20 28 62 79 74 65 2d |f lines.|" (byte-|
|00004bf0| 63 6f 64 65 20 22 8a 65 | 62 88 c2 c3 c0 c1 23 85 |code ".e|b.....#.|
|00004c00| 16 00 c4 c5 c6 21 60 5c | 22 88 82 04 00 29 87 22 |.....!`\|"....)."|
|00004c10| 20 5b 6e 69 6c 20 74 20 | 72 65 2d 73 65 61 72 63 | [nil t |re-searc|
|00004c20| 68 2d 66 6f 72 77 61 72 | 64 20 22 5b 20 09 5d 5b |h-forwar|d "[ .][|
|00004c30| 20 09 5d 2a 24 22 20 64 | 65 6c 65 74 65 2d 72 65 | .]*$" d|elete-re|
|00004c40| 67 69 6f 6e 20 6d 61 74 | 63 68 2d 62 65 67 69 6e |gion mat|ch-begin|
|00004c50| 6e 69 6e 67 20 30 5d 20 | 36 29 29 0a |ning 0] |6)). |
+--------+-------------------------+-------------------------+--------+--------+